|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.io.CommPort
Constructor Summary | |
CommPort()
|
Method Summary | |
void |
close()
Closes the communications port. |
abstract void |
disableReceiveFraming()
Disables receive framing. |
abstract void |
disableReceiveThreshold()
Disables receive threshold. |
abstract void |
disableReceiveTimeout()
Disables receive timeout. |
abstract void |
enableReceiveFraming(int framingByte)
Enables receive framing, if this feature is supported by the driver. |
abstract void |
enableReceiveThreshold(int thresh)
Enables receive threshold, if this feature is supported by the driver. |
abstract void |
enableReceiveTimeout(int rcvTimeout)
Enables receive timeout, if this feature is supported by the driver. |
abstract int |
getInputBufferSize()
Gets the input buffer size. |
abstract java.io.InputStream |
getInputStream()
Returns an input stream. |
java.lang.String |
getName()
Gets the name of the communications port. |
abstract int |
getOutputBufferSize()
Gets the output buffer size. |
abstract java.io.OutputStream |
getOutputStream()
Returns an output stream. |
abstract int |
getReceiveFramingByte()
Gets the current byte used for receive framing. |
abstract int |
getReceiveThreshold()
Gets the integer value of the receive threshold. |
abstract int |
getReceiveTimeout()
Gets the integer value of the receive timeout. |
abstract boolean |
isReceiveFramingEnabled()
Checks if receive framing is enabled. |
abstract boolean |
isReceiveThresholdEnabled()
Checks if receive threshold is enabled. |
abstract boolean |
isReceiveTimeoutEnabled()
Checks if receive timeout is enabled. |
abstract void |
setInputBufferSize(int size)
Sets the input buffer size. |
abstract void |
setOutputBufferSize(int size)
Sets the output buffer size. |
java.lang.String |
toString()
Returns a String representation of this communications port. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommPort()
Method Detail |
public java.lang.String getName()
public java.lang.String toString()
public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- - if an I/O error occurredpublic abstract java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
- - if an I/O error occurredpublic void close()
public abstract void enableReceiveThreshold(int thresh) throws UnsupportedCommOperationException
thresh
- - when this many bytes are in the input buffer, return immediately from read.
UnsupportedCommOperationException
- - is thrown if receive threshold is not supported by the underlying driver.public abstract void disableReceiveThreshold()
public abstract boolean isReceiveThresholdEnabled()
public abstract int getReceiveThreshold()
public abstract void enableReceiveTimeout(int rcvTimeout) throws UnsupportedCommOperationException
rcvTimeout
- - when this many milliseconds have elapsed,
return immediately from read, regardless of bytes in input buffer.
UnsupportedCommOperationException
- - is thrown if receive timeout
is not supported by the underlying driver.public abstract void disableReceiveTimeout()
public abstract boolean isReceiveTimeoutEnabled()
public abstract int getReceiveTimeout()
public abstract void enableReceiveFraming(int framingByte) throws UnsupportedCommOperationException
framingByte
- - this byte in the input stream suggests the end of the
received frame. Blocked reads will return immediately. Only the low 8 bits
of framingByte are used while the upper 24 bits are masked off. A value
outside the range of 0-255 will be converted to the value of its lowest 8 bits.
UnsupportedCommOperationException
- - is thrown if receive timeout
is not supported by the underlying driver.public abstract void disableReceiveFraming()
public abstract boolean isReceiveFramingEnabled()
public abstract int getReceiveFramingByte()
public abstract void setInputBufferSize(int size)
size
- - size of the input bufferpublic abstract int getInputBufferSize()
public abstract void setOutputBufferSize(int size)
size
- - size of the output bufferpublic abstract int getOutputBufferSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |