Package gnu.io
Class CommPort
- java.lang.Object
-
- gnu.io.CommPort
-
- Direct Known Subclasses:
SerialPort
public abstract class CommPort extends java.lang.ObjectCommPort
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description CommPort()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()abstract voiddisableReceiveFraming()abstract voiddisableReceiveThreshold()abstract voiddisableReceiveTimeout()abstract voidenableReceiveFraming(int f)abstract voidenableReceiveThreshold(int thresh)abstract voidenableReceiveTimeout(int time)abstract intgetInputBufferSize()abstract java.io.InputStreamgetInputStream()java.lang.StringgetName()abstract intgetOutputBufferSize()abstract java.io.OutputStreamgetOutputStream()abstract intgetReceiveFramingByte()abstract intgetReceiveThreshold()abstract intgetReceiveTimeout()abstract booleanisReceiveFramingEnabled()abstract booleanisReceiveThresholdEnabled()abstract booleanisReceiveTimeoutEnabled()abstract voidsetInputBufferSize(int size)abstract voidsetOutputBufferSize(int size)java.lang.StringtoString()
-
-
-
Method Detail
-
enableReceiveFraming
public abstract void enableReceiveFraming(int f) throws UnsupportedCommOperationException
-
disableReceiveFraming
public abstract void disableReceiveFraming()
-
isReceiveFramingEnabled
public abstract boolean isReceiveFramingEnabled()
-
getReceiveFramingByte
public abstract int getReceiveFramingByte()
-
disableReceiveTimeout
public abstract void disableReceiveTimeout()
-
enableReceiveTimeout
public abstract void enableReceiveTimeout(int time) throws UnsupportedCommOperationException
-
isReceiveTimeoutEnabled
public abstract boolean isReceiveTimeoutEnabled()
-
getReceiveTimeout
public abstract int getReceiveTimeout()
-
enableReceiveThreshold
public abstract void enableReceiveThreshold(int thresh) throws UnsupportedCommOperationException
-
disableReceiveThreshold
public abstract void disableReceiveThreshold()
-
getReceiveThreshold
public abstract int getReceiveThreshold()
-
isReceiveThresholdEnabled
public abstract boolean isReceiveThresholdEnabled()
-
setInputBufferSize
public abstract void setInputBufferSize(int size)
-
getInputBufferSize
public abstract int getInputBufferSize()
-
setOutputBufferSize
public abstract void setOutputBufferSize(int size)
-
getOutputBufferSize
public abstract int getOutputBufferSize()
-
close
public void close()
-
getInputStream
public abstract java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
getOutputStream
public abstract java.io.OutputStream getOutputStream() throws java.io.IOException- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-