|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.comm.CommPort
Basic communication port
| Field Summary | |
protected java.lang.String |
name
Name of the port |
| Constructor Summary | |
CommPort()
|
|
| Method Summary | |
void |
close()
Close the port |
void |
disableReceiveFraming()
Disable receive framing Disable the receive framing |
void |
disableReceiveThreshold()
Disable the receive threshold |
void |
disableReceiveTimeout()
Disable receive timeout |
abstract void |
enableReceiveFraming(int framingByte)
Enable receive framing |
abstract void |
enableReceiveThreshold(int thresh)
Enable the receive threshold |
abstract void |
enableReceiveTimeout(int timeout)
Enable the receive timeout |
int |
getInputBufferSize()
Get the input buffer size |
abstract InputStream |
getInputStream()
Get the input stream |
java.lang.String |
getName()
Get the name of the port |
int |
getOutputBufferSize()
Get the output buffer size |
abstract OutputStream |
getOutputStream()
Get the output stream |
int |
getReceiveFramingByte()
Get the receive framing byte |
int |
getReceiveThreshold()
Return the receive threshold |
int |
getReceiveTimeout()
Get the receive timeout |
boolean |
isReceiveFramingEnabled()
Return true if receive framing is enabled |
boolean |
isReceiveThresholdEnabled()
Return true if the receive threshold is enabled |
boolean |
isReceiveTimeoutEnabled()
Return true if receive timeout is enabled |
abstract void |
setInputBufferSize(int size)
Set the input buffer size |
abstract void |
setOutputBufferSize(int size)
Set the output buffer size |
java.lang.String |
toString()
Get a string representation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
| Constructor Detail |
public CommPort()
| Method Detail |
public java.lang.String getName()
public java.lang.String toString()
toString in class Object
public abstract InputStream getInputStream()
throws IOException
IOException - if there is an error opening the input stream
public abstract OutputStream getOutputStream()
throws IOException
IOException - if there is an error opening the output streampublic void close()
public abstract void enableReceiveThreshold(int thresh)
throws UnsupportedCommOperationException
UnsupportedCommOperationException - if the operation is not supportedpublic void disableReceiveThreshold()
public boolean isReceiveThresholdEnabled()
public int getReceiveThreshold()
public abstract void enableReceiveTimeout(int timeout)
throws UnsupportedCommOperationException
timeout - The receive timeout value
UnsupportedCommOperationException - if the operation is not supportedpublic void disableReceiveTimeout()
public boolean isReceiveTimeoutEnabled()
public int getReceiveTimeout()
public abstract void enableReceiveFraming(int framingByte)
throws UnsupportedCommOperationException
framingByte - The value to use
UnsupportedCommOperationException - if the operation is not supportedpublic void disableReceiveFraming()
public boolean isReceiveFramingEnabled()
public int getReceiveFramingByte()
public abstract void setInputBufferSize(int size)
size - The buffer sizepublic int getInputBufferSize()
public abstract void setOutputBufferSize(int size)
size - The buffer sizepublic int getOutputBufferSize()
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||