public abstract class CommPort extends Object
| Constructor and Description |
|---|
CommPort() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract void |
disableReceiveFraming() |
abstract void |
disableReceiveThreshold() |
abstract void |
disableReceiveTimeout() |
abstract void |
enableReceiveFraming(int framingByte) |
abstract void |
enableReceiveThreshold(int thresh) |
abstract void |
enableReceiveTimeout(int rcvTimeout) |
abstract int |
getInputBufferSize() |
abstract InputStream |
getInputStream() |
String |
getName() |
abstract int |
getOutputBufferSize() |
abstract OutputStream |
getOutputStream() |
abstract int |
getReceiveFramingByte() |
abstract int |
getReceiveThreshold() |
abstract int |
getReceiveTimeout() |
abstract boolean |
isReceiveFramingEnabled() |
abstract boolean |
isReceiveThresholdEnabled() |
abstract boolean |
isReceiveTimeoutEnabled() |
abstract void |
setInputBufferSize(int size) |
abstract void |
setOutputBufferSize(int size) |
protected String name
public String getName()
public abstract InputStream getInputStream() throws IOException
IOExceptionpublic abstract OutputStream getOutputStream() throws IOException
IOExceptionpublic void close()
public abstract void enableReceiveThreshold(int thresh)
throws UnsupportedCommOperationException
public abstract void disableReceiveThreshold()
public abstract boolean isReceiveThresholdEnabled()
public abstract int getReceiveThreshold()
public abstract void enableReceiveTimeout(int rcvTimeout)
throws UnsupportedCommOperationException
public abstract void disableReceiveTimeout()
public abstract boolean isReceiveTimeoutEnabled()
public abstract int getReceiveTimeout()
public abstract void enableReceiveFraming(int framingByte)
throws UnsupportedCommOperationException
public abstract void disableReceiveFraming()
public abstract boolean isReceiveFramingEnabled()
public abstract int getReceiveFramingByte()
public abstract void setInputBufferSize(int size)
public abstract int getInputBufferSize()
public abstract void setOutputBufferSize(int size)
public abstract int getOutputBufferSize()
Copyright © 2016. All rights reserved.