Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

A pure Java interface to the Scanii content processing service - https://scanii.com

How to use this client

Installing using Maven coordinates:

<dependency>
  <groupId>com.uvasoftware</groupId>
  <artifactId>scanii-java</artifactId>
  <version>${latest.release.version}</version>
</dependency>

Sample usage:

package com.uvasoftware.scanii;

import com.uvasoftware.scanii.models.ScaniiProcessingResult;

import java.nio.file.Paths;

public class Sample {
  public static void main(String[] args) {
    ScaniiClient client = ScaniiClients.createDefault(ScaniiTarget.latest(), args[0], args[1]);
    ScaniiProcessingResult result = client.process(Paths.get(args[2]));
    System.out.println(String.format("checksum: %s, content-type: %s and findings: %s",
      result.getChecksum(),
      result.getContentType(),
      result.getFindings())
    );
  }
}

Please note that you will need a valid scanii.com account and API Credentials.

More advanced usage examples can be found here

General documentation on scanii can be found here