接口 SerialPortWrapper


public interface SerialPortWrapper
Wrapper to further aid in abstracting Modbus4J from a serial port implementation
  • 方法详细资料

    • close

      void close() throws Exception
      Close the Serial Port
      抛出:
      Exception - if any.
    • open

      void open() throws Exception

      open.

      抛出:
      Exception - if any.
    • getInputStream

      InputStream getInputStream()
      Return the input stream for an open port
      返回:
      a InputStream object.
    • getOutputStream

      OutputStream getOutputStream()
      Return the output stream for an open port
      返回:
      a OutputStream object.
    • getBaudRate

      int getBaudRate()

      getBaudRate.

      返回:
      a int.
    • getDataBits

      int getDataBits()

      getDataBits.

      返回:
      a int.
    • getStopBits

      int getStopBits()

      getStopBits.

      返回:
      a int.
    • getParity

      int getParity()

      getParity.

      返回:
      a int.