case CommPortIdentifier.PORT_I2C: if ((val = System.getProperty("gnu.io.rxtx.I2CPorts")) == null) val = System.getProperty("gnu.io.I2CPorts"); break;  case CommPortIdentifier.PORT_RS485: if ((val = System.getProperty("gnu.io.rxtx.RS485Ports")) == null) val = System.getProperty("gnu.io.RS485Ports"); break;  case CommPortIdentifier.PORT_RAW: if ((val = System.getProperty("gnu.io.rxtx.RawPorts")) == null) val = System.getProperty("gnu.io.RawPorts"); break;
	private boolean registerSpecifiedPorts(int PortType)	{		String val = null;						try		    {		     		     String ext_dir=System.getProperty("java.ext.dirs")+System.getProperty("file.separator");		     FileInputStream rxtx_prop=new FileInputStream(ext_dir+"gnu.io.rxtx.properties");		     Properties p=new Properties(System.getProperties());		     p.load(rxtx_prop);		     System.setProperties(p); 		    }catch(Exception e){			if (debug){			    System.out.println("The file: gnu.io.rxtx.properties doesn't exists.");			    System.out.println(e.toString());			    }//end if			}//end catch		if (debug)			System.out.println("checking for system-known ports of type "+PortType);		if (debug)			System.out.println("checking registry for ports of type "+PortType);		switch (PortType) {			case CommPortIdentifier.PORT_SERIAL:				if ((val = System.getProperty("gnu.io.rxtx.SerialPorts")) == null)				val = System.getProperty("gnu.io.SerialPorts");				break;			case CommPortIdentifier.PORT_PARALLEL:				if ((val = System.getProperty("gnu.io.rxtx.ParallelPorts")) == null)				val = System.getProperty("gnu.io.ParallelPorts");				break;			case CommPortIdentifier.PORT_I2C:				if ((val = System.getProperty("gnu.io.rxtx.I2CPorts")) == null)				val = System.getProperty("gnu.io.I2CPorts");				break;			case CommPortIdentifier.PORT_RS485:				if ((val = System.getProperty("gnu.io.rxtx.RS485Ports")) == null)				val = System.getProperty("gnu.io.RS485Ports");				break;			case CommPortIdentifier.PORT_RAW:				if ((val = System.getProperty("gnu.io.rxtx.RawPorts")) == null)				val = System.getProperty("gnu.io.RawPorts");				break;			default:				if (debug)				System.out.println("unknown port type "+PortType+" passed to RXTXCommDriver.registerSpecifiedPorts()");		}		if (val != null) {			addSpecifiedPorts(val, PortType);			return true;		} else return false;	}