|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.dalsemi.comm.InternalCommPort
This class implements a generic communications port.
| Constructor Summary | |
InternalCommPort()
|
|
| 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()
Gets 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 InternalCommPort()
| Method Detail |
public abstract void open()
throws java.io.IOException
java.io.IOException -
public abstract void close()
throws java.io.IOException
java.io.IOException -
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException -
public abstract java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException -
public abstract void enableReceiveTimeout()
throws javax.comm.UnsupportedCommOperationException
javax.comm.UnsupportedCommOperationException -
public abstract void disableReceiveTimeout()
throws javax.comm.UnsupportedCommOperationException
javax.comm.UnsupportedCommOperationException -
public abstract void setReceiveTimeout(int timeout)
throws javax.comm.UnsupportedCommOperationException
timeout - timeout value in millisecondsjavax.comm.UnsupportedCommOperationException - public abstract boolean isReceiveTimeoutEnabled()
public abstract int getInputBufferSize()
public abstract int getOutputBufferSize()
public abstract void setInputBufferSize(int size)
throws javax.comm.UnsupportedCommOperationException
size - desired new size for the input bufferjavax.comm.UnsupportedCommOperationException -
public abstract void setOutputBufferSize(int size)
throws javax.comm.UnsupportedCommOperationException
size - desired new size for the output bufferjavax.comm.UnsupportedCommOperationException -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||