|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.NetworkAccess
public class NetworkAccess
NetworkAccess provides communications access
to USB Devices.
| Constructor Summary | |
|---|---|
NetworkAccess(int port)
Creates an instance of NetworkAccess that will
accept a connection request on the port |
|
NetworkAccess(java.lang.String host,
int port)
Creates an instance of NetworkAccess
and will attempt connection to remote host and port |
|
| Method Summary | |
|---|---|
void |
close()
Closes the USB Port |
java.io.InputStream |
getInputStream()
Gets the input stream associate with the USB Port |
java.io.OutputStream |
getOutputStream()
Gets the output stream associate with the USB Port |
boolean |
isOpen()
Check status of the connection |
void |
open()
Opens and initializes network access |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkAccess(java.lang.String host,
int port)
NetworkAccess
and will attempt connection to remote host and port
host - the remote hostport - the remote portpublic NetworkAccess(int port)
NetworkAccess that will
accept a connection request on the port
port - the local port| Method Detail |
|---|
public void open()
throws java.io.IOException
open in interface HomeAccessjava.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in interface HomeAccesspublic java.io.OutputStream getOutputStream()
getOutputStream in interface HomeAccesspublic void close()
close in interface HomeAccesspublic boolean isOpen()
isOpen in interface HomeAccess
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||