technology without an interesting name
Quote:
Originally Posted by
Steve11235
Well, I see where your quiz question came from...
which one?
Quote:
Originally Posted by
Steve11235
Unless the OS presents the scanner to Java as a "File", no. There may be other parts of the device that the OS treats as a "File". In that case, the scanner *might* be able to save the scanned image to the internal storage device.
There is a body of code, I am tempted to call it a "driver" but that name though correct does not fully describe what the "driver" actually does. You talk to the loadable runtime, it talks to the device and OS - that tool can do any optimization it wants including negotiate issues such as may be other parts of the device that the OS treats as a "File" There does seem to be an issue on message loop being used to provide state information, but a simplified version of the header file that calls into the primary dll has a simple hook avaliable for use.
I extracted the text for the spec, it runs 829 KB (849,356 bytes) - that is the spec. The dll is somewhat bulky by some people's ideas but we can make one call in the simplified header and it will do the boolean isAvailable() and boolean loadDLLmain() and so on using a simplified set of calls.
I rewrote my Java wrapper code, ran javah on it and put up the first revision at the link posted earlier. I was about ready to run some limited C code, the author of the simplified version provided review on which function call I selected for KISS first run, what I think I am needing to get to is to "construct" a Code:
java.awt.image.DataBufferByte;
from the DIB returned by the C call,.... in over my head but I am confident what I need to do is get the DIB returned from the C call into Java where we have BufferedImage available to begin work as posted at the Sun post I linked.
In my mind, I have both sides ready - cannot hook it together because of lack of JNI experience.