Package gnu.io

Examples of gnu.io.CommPortIdentifier


      Enumeration portIdentifiers = CommPortIdentifier.getPortIdentifiers();
      Vector<String> sPorts = new Vector<String>();
      if( DEBUGMODE )
        geco().debug("*** CommPort listing ***");
      while( portIdentifiers.hasMoreElements() ){
        CommPortIdentifier port = (CommPortIdentifier) portIdentifiers.nextElement();
        if( port.getPortType()==CommPortIdentifier.PORT_SERIAL ){
          if( DEBUGMODE )
            geco().debug(port.getName());
          sPorts.add(port.getName());
        }
      }
      serialPorts = createFriendlyPorts(sPorts);     
    }
    return serialPorts;
View Full Code Here


    buffer.write("****** RXTX COM PORTS " + RXTXVersion.getVersion() + " ******");
    buffer.newLine();
    @SuppressWarnings("rawtypes")
    Enumeration ports = CommPortIdentifier.getPortIdentifiers();
    while( ports.hasMoreElements() ) {
      CommPortIdentifier port = (CommPortIdentifier) ports.nextElement();
      buffer.write(port.getName() + " - "
          + (port.getPortType()==CommPortIdentifier.PORT_SERIAL ? "Serial" : "Other") );
      buffer.newLine();
    }
  }
View Full Code Here

TOP

Related Classes of gnu.io.CommPortIdentifier

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.