|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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. |
JSaneDevice[] |
getAllDevices()
Gets all the devices available. |
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 JSaneDevice[] getAllDevices()
throws java.io.IOException,
SaneException
java.io.IOException
SaneException
public JSaneDevice getDeviceByName(java.lang.String name)
throws java.io.IOException,
SaneException
name -
null if not found.
java.io.IOException
SaneExceptionpublic java.lang.String getHost()
public int getPort()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||