Package gnu.io

Examples of gnu.io.RXTXPort


    }

    // fixed issue as rxtx library originally used in j62056 does use
    // different version of rxtx
    // com port in their version is using gnu.io.CommPort
    RXTXPort commPort;
    try {
      commPort = portIdentifier.open(this.getClass().getName(), 2000);
    } catch (PortInUseException e) {
      throw new IOException("Serial port is currently in use.", e);
    }

    if (!(commPort instanceof SerialPort)) {
      commPort.close();
      throw new IOException("The specified CommPort is not a serial port");
    }

    serialPort = (SerialPort) commPort;
View Full Code Here

TOP

Related Classes of gnu.io.RXTXPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.