|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.asprise.util.jsane.JSane
Represents a connection to a local or remote SANE daemon.
| Constructor Summary | |
JSane()
Establishes a SANE connection to local host with default port. |
|
JSane(java.lang.String host)
Establishes a SANE connection to specified host with default port. |
|
JSane(java.lang.String host,
int port)
Establishes a SANE connection to specified host and port. |
|
| Method Summary | |
void |
close()
Stops all the activities and closes the connection. |
com.asprise.util.jsane.JSaneDevice[] |
getAllDevices()
Gets all the devices available. |
com.asprise.util.jsane.JSaneDevice |
getDeviceByName(java.lang.String name)
Returns the device with specified name (case-sensitive). |
java.lang.String |
getHost()
|
int |
getPort()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSane(java.lang.String host,
int port)
host - port - public JSane(java.lang.String host)
host - public JSane()
| Method Detail |
public void close()
public com.asprise.util.jsane.JSaneDevice[] getAllDevices()
throws java.io.IOException,
com.asprise.util.jsane.SaneException
java.io.IOException
com.asprise.util.jsane.SaneException
public com.asprise.util.jsane.JSaneDevice getDeviceByName(java.lang.String name)
throws java.io.IOException,
com.asprise.util.jsane.SaneException
name -
null if not found.
java.io.IOException
com.asprise.util.jsane.SaneExceptionpublic java.lang.String getHost()
public int getPort()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||