Package ej.ecom.io

Interface CommConnection

  • All Superinterfaces:
    Connection, InputConnection, OutputConnection, StreamConnection

    public interface CommConnection
    extends StreamConnection
    This interface defines a Connection to a logical serial port, which is a StreamConnection. There is no way from this side of the connection to know the connection state on the other side (particularly, closing the other side has no effect on this side; a thread blocked on InputStream.read() will infinitely block).

    The generic URL format described in Connector is specified as following:

    • protocol: comm
    • name: the CommPort name
    • params: optional connection parameters in the following list
    • baudrate: positive integer (9600 by default)
    • bitsperchar: positive integer (8 by default)
    • stopbits:1|2|1.5 (1 by default)
    • parity:odd|even|none (none by default)