Package gnu.io

Class RXTXCommDriver

  • All Implemented Interfaces:
    CommDriver

    public class RXTXCommDriver
    extends java.lang.Object
    implements CommDriver
    This is the JavaComm for Linux driver.
    • Constructor Detail

      • RXTXCommDriver

        public RXTXCommDriver()
    • Method Detail

      • nativeGetVersionWrapper

        public static java.lang.String nativeGetVersionWrapper()
                                                        throws java.lang.UnsatisfiedLinkError
        Throws:
        java.lang.UnsatisfiedLinkError
      • getPortIdentifiers

        public java.util.Set<java.lang.String> getPortIdentifiers()
      • initialize

        public void initialize()
        Determine the OS and where the OS has the devices located
        Specified by:
        initialize in interface CommDriver
      • getCommPort

        public CommPort getCommPort​(java.lang.String PortName,
                                    int PortType)
        Specified by:
        getCommPort in interface CommDriver
        Parameters:
        PortName - The name of the port the OS recognizes
        PortType - CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL
        Returns:
        CommPort getCommPort() will be called by CommPortIdentifier from its openPort() method. PortName is a string that was registered earlier using the CommPortIdentifier.addPortName() method. getCommPort() returns an object that extends either SerialPort or ParallelPort.
      • Report

        public void Report​(java.lang.String arg)