|
|||||||||
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 InputStream |
getInputStream()
Gets an InputStream for the port. |
abstract int |
getOutputBufferSize()
Gets the size of the Output Buffer. |
abstract 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 IOException
public abstract void close() throws IOException
public abstract InputStream getInputStream() throws IOException
public abstract OutputStream getOutputStream() throws IOException
public abstract void enableReceiveTimeout() throws javax.comm.UnsupportedCommOperationException
public abstract void disableReceiveTimeout() throws javax.comm.UnsupportedCommOperationException
public abstract void setReceiveTimeout(int timeout) throws javax.comm.UnsupportedCommOperationException
timeout
- timeout value in millisecondspublic 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 bufferpublic abstract void setOutputBufferSize(int size) throws javax.comm.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 |