Package gnu.io

Class CommPort

java.lang.Object
gnu.io.CommPort
Direct Known Subclasses:
ParallelPort, SerialPort

public abstract class CommPort extends Object
CommPort
  • Field Details

    • name

      protected String name
  • Constructor Details

    • CommPort

      public CommPort()
  • Method Details

    • enableReceiveFraming

      public abstract void enableReceiveFraming(int f) throws UnsupportedCommOperationException
      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
      Throws:
      UnsupportedCommOperationException
    • isReceiveTimeoutEnabled

      public abstract boolean isReceiveTimeoutEnabled()
    • getReceiveTimeout

      public abstract int getReceiveTimeout()
    • enableReceiveThreshold

      public abstract void enableReceiveThreshold(int thresh) throws UnsupportedCommOperationException
      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 InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getOutputStream

      public abstract OutputStream getOutputStream() throws IOException
      Throws:
      IOException
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Object