|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.asprise.util.jsane.JSaneDevice
Represents a SANE device. You can use this SANE device to acquire images.
| Method Summary | |
java.awt.Image |
acquireImage()
Acquires image with IO blocking mode - i.e., the method will not not return until the image is acquired or error occurs. |
void |
acquireImage(java.awt.image.ImageObserver observer)
Acquires image with IO non-blocking mode. |
void |
canelAcquisition()
Cancels the current acqisition if any. |
void |
close()
Closes the device. |
java.lang.String |
getModel()
Returns the model info. |
java.lang.String |
getName()
|
java.lang.String |
getOptionValue(java.lang.String optionName)
Returns the current value for the specified option as a string. |
java.lang.String |
getType()
Returns the type of the device. |
java.lang.String |
getVendor()
Returns the vendor info. |
void |
setOptionValue(java.lang.String optionName,
java.lang.String value)
Sets the specified option with the given value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void canelAcquisition()
throws java.io.IOException,
SaneException
java.io.IOException
SaneException
public java.awt.Image acquireImage()
throws SaneException,
java.io.IOException
SaneException
java.io.IOException
public void acquireImage(java.awt.image.ImageObserver observer)
throws SaneException,
java.io.IOException
observer -
SaneException
java.io.IOException
public void close()
throws java.io.IOException,
SaneException
java.io.IOException
SaneException
public java.lang.String getOptionValue(java.lang.String optionName)
throws java.io.IOException,
SaneException
optionName -
java.io.IOException
SaneException
public void setOptionValue(java.lang.String optionName,
java.lang.String value)
throws java.io.IOException,
SaneException
optionName - value -
java.io.IOException
SaneExceptionpublic java.lang.String getName()
public java.lang.String getVendor()
public java.lang.String getModel()
public java.lang.String getType()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||