|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.morena.MorenaBase SK.gnome.sane.SaneConnection
public class SaneConnection
Connection to single host with SANE daemon running.
Nested Class Summary | |
---|---|
static class |
SaneBase.CloseHook
|
Field Summary |
---|
Fields inherited from interface SK.gnome.morena.MorenaConstants |
---|
MORENA_MESSAGES, VERSION |
Method Summary | |
---|---|
void |
close()
Close connection. |
static SaneConnection |
connect(java.lang.String host)
Create connection to specified host on default port with null user name. |
static SaneConnection |
connect(java.lang.String host,
int port,
java.lang.String userName)
Create connection to specified host on specified port with specified user name. |
static SaneConnection |
connect(java.lang.String host,
java.lang.String userName)
Create connection to specified host on default port with specified user name. |
SaneSource |
getDefaultSource()
Get default source on this host. |
int |
getResultCode()
|
SaneSource[] |
listSources()
List available sources on this host. |
static SaneSource |
selectSource(java.awt.Component parent)
Show Morena-like select source dialog to choose SANE source. |
SaneSource |
selectSource(java.awt.Component parent,
SaneSource defaultSource)
Show TWAIN-like select source dialog to choose SANE source. |
void |
setResultCode(int lastStatus)
|
java.lang.String |
toString()
For debugging purposes only. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void close() throws java.lang.Exception
java.lang.Exception
public SaneSource[] listSources()
public SaneSource getDefaultSource()
public SaneSource selectSource(java.awt.Component parent, SaneSource defaultSource)
public static SaneSource selectSource(java.awt.Component parent)
public static SaneConnection connect(java.lang.String host, int port, java.lang.String userName) throws SaneException, java.io.IOException
SaneException
java.io.IOException
public static SaneConnection connect(java.lang.String host, java.lang.String userName) throws SaneException, java.io.IOException
SaneException
java.io.IOException
public static SaneConnection connect(java.lang.String host) throws SaneException, java.io.IOException
SaneException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public int getResultCode()
public void setResultCode(int lastStatus)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |