|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.comm.CommPort
This class implements a generic communications port.
| Constructor Summary | |
CommPort()
|
|
| Method Summary | |
abstract void |
close()
Closes the port for communication. |
abstract void |
disableReceiveTimeout()
Disables timeouts while receiving data. |
abstract void |
enableReceiveTimeout()
Enables timeouts while receiving data. |
abstract int |
getInputBufferSize()
gets the size of the Input Buffer. |
abstract java.io.InputStream |
getInputStream()
Gets an InputStream for the port. |
abstract int |
getOutputBufferSize()
gets the size of the Output Buffer. |
abstract java.io.OutputStream |
getOutputStream()
Get an OutputStream for the port. |
abstract boolean |
isReceiveTimeoutEnabled()
Returns true if ReceiveTimeout is enabled |
abstract void |
open()
Opens the port for communication. |
abstract void |
setInputBufferSize(int size)
sets the size of the InputBuffer. |
abstract void |
setOutputBufferSize(int size)
Sets the size of the OutputBuffer. |
abstract void |
setReceiveTimeout(int timeout)
Sets the Receive timeout value. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public CommPort()
| Method Detail |
public abstract void open()
throws java.io.IOException
public abstract void close()
throws java.io.IOException
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
public abstract java.io.OutputStream getOutputStream()
throws java.io.IOException
public abstract void enableReceiveTimeout()
throws UnsupportedCommOperationException
public abstract void disableReceiveTimeout()
throws UnsupportedCommOperationException
public abstract void setReceiveTimeout(int timeout)
throws UnsupportedCommOperationException
public abstract boolean isReceiveTimeoutEnabled()
public abstract int getInputBufferSize()
public abstract int getOutputBufferSize()
public abstract void setInputBufferSize(int size)
throws UnsupportedCommOperationException
size - desired new size for the input buffer.
public abstract void setOutputBufferSize(int size)
throws UnsupportedCommOperationException
size - desired new size for the output buffer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||