|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.USBAccess
public class USBAccess
USBAccess provides communications access
to USB Devices.
| Constructor Summary | |
|---|---|
USBAccess(short vendor,
short product)
Creates an instance of USBAccess |
|
| 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()
State of the connection |
void |
open()
Opens and initializes the USB Port |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public USBAccess(short vendor,
short product)
USBAccess
vendor - the USB device vendor IDproduct - the USB device product ID| 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 | ||||||||