Main Page
From JSane
Welcome to JSane.
JSane is a set of jar files which allows Java programs to talk via the Sane-network protocol to a SaneD server.
Whilst working on a major project I needed the ability to scan an image in, as the project was written in Java I idealy wanted a Java library, Sane does come with a JNI wrapper, which I had difficulty in getting to compile. As the project would run on diffrent Operating Systems I would of had to compile the JNI on each system, I thought this was a bit much as all of them would be accessing the Scanner via a network connection.
I looked into the network protocol and decided that it should be simple enough to implement in pure Jave, I thought that if this scratched my itch then it may scratch an itch for someone else, I released the code under the GPL (Now under the LGPL) and JSane was born.
Several people have suggested improvements and reported errors. These have gone into making JSane better.
I split the network functionality out from the base API so that at a later stage I (or someone else) could write an JNI based version, it might also be possible to write a Twain version.
Visit the download page at Sourceforge to get the latest version. [1]
Andi
See the Basic Tutorial on how to view the known scanners and how to get their options.
Setting Values and Scanning Learn how to perform a scan.
Using the Experimental GUI dialogs How to use the experimental GUI dialogs in your own code.
Exceptions How JSane returns the status of the scanner.
Setting Options Values The values that each of the option types will take.
