private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (testRead(PortName, PortType)) CommPortIdentifier.addPortName(PortName, PortType, this); } }
private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (testRead(PortName, PortType)) CommPortIdentifier.addPortName(PortName, PortType, this); } }
private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (testRead(PortName, PortType)) CommPortIdentifier.addPortName(PortName, PortType, this); } }
/** handle solaris/sunos /dev/cua/a convention */ private void checkSolaris(String PortName, int PortType) { char p[] = { 91 }; for (p[0] = 97; p[0] < 123; p[0]++) { if (testRead(PortName.concat(new String(p)), PortType)) { CommPortIdentifier.addPortName(PortName.concat(new String(p)), PortType, this); } } /** check for 0-9 in case we have them (Solaris USB) */ for (p[0] = 48; p[0] <= 57; p[0]++) { if (testRead(PortName.concat(new String(p)), PortType)) { CommPortIdentifier.addPortName(PortName.concat(new String(p)), PortType, this); } } }
/** handle solaris/sunos /dev/cua/a convention */ private void checkSolaris(String PortName, int PortType) { char p[] = { 91 }; for( p[0] =97 ;p[0] < 123; p[0]++ ) { if (testRead(PortName.concat(new String(p)),PortType)) { CommPortIdentifier.addPortName( PortName.concat(new String(p)), PortType, this ); } } } private void registerValidPorts(
private void addSpecifiedPorts(String names, int PortType) { final String pathSep = System.getProperty("path.separator", ":"); final StringTokenizer tok = new StringTokenizer(names, pathSep); if (debug) System.out.println("\nRXTXCommDriver:addSpecifiedPorts()"); while (tok.hasMoreElements()) { String PortName = tok.nextToken(); if (debug) System.out.println("Trying " + PortName + "."); if (testRead(PortName, PortType)) { CommPortIdentifier.addPortName(PortName, PortType, this); if (debug) System.out.println("Success: Read from " + PortName + "."); } else { if (debug) System.out.println("Fail: Cannot read from " + PortName + "."); } } }
/** handle solaris/sunos /dev/cua/a convention */ private void checkSolaris(String PortName, int PortType) { char p[] = { 91 }; for( p[0] =97 ;p[0] < 123; p[0]++ ) { if (testRead(PortName.concat(new String(p)),PortType)) { CommPortIdentifier.addPortName( PortName.concat(new String(p)), PortType, this ); } } /** check for 0-9 in case we have them (Solaris USB) */ for( p[0] =48 ;p[0] <= 57; p[0]++ ) { if (testRead(PortName.concat(new String(p)),PortType)) { CommPortIdentifier.addPortName( PortName.concat(new String(p)), PortType, this ); } } } private void registerValidPorts(
/** handle solaris/sunos /dev/cua/a convention */ private void checkSolaris(String PortName, int PortType) { char p[] = { 91 }; for( p[0] =97 ;p[0] < 123; p[0]++ ) { if (testRead(PortName.concat(new String(p)),PortType)) { CommPortIdentifier.addPortName( PortName.concat(new String(p)), PortType, this ); } } /** check for 0-9 in case we have them (Solaris USB) */ for( p[0] =48 ;p[0] <= 57; p[0]++ ) { if (testRead(PortName.concat(new String(p)),PortType)) { CommPortIdentifier.addPortName( PortName.concat(new String(p)), PortType, this ); } } } private void registerValidPorts(
else if (testRead(PortName, PortType)) { CommPortIdentifier.addPortName(PortName, PortType, this);
osName.equals("SunOS")) checkSolaris(PortName,PortType); else if (testRead(PortName, PortType))
osName.equals("SunOS")) checkSolaris(PortName,PortType); else if (testRead(PortName, PortType))
osName.equals("SunOS")) checkSolaris(PortName,PortType); else if (testRead(PortName, PortType))