Java interface to the scanii.com content processing service
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
pom.xml

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