case CommPortIdentifier.PORT_I2C: return new I2C( PortName ); case CommPortIdentifier.PORT_RS485: return new RS485( PortName ); case CommPortIdentifier.PORT_RAW: return new Raw( PortName );
	public CommPort getCommPort( String PortName, int PortType )	{		if (debug) System.out.println("RXTXCommDriver:getCommPort("			+PortName+","+PortType+")");		try {			switch (PortType) {				case CommPortIdentifier.PORT_SERIAL:					return new RXTXPort( PortName );				case CommPortIdentifier.PORT_PARALLEL:					return new LPRPort( PortName );				case CommPortIdentifier.PORT_I2C:					return new I2C( PortName );				case CommPortIdentifier.PORT_RS485:					return new RS485( PortName );				case CommPortIdentifier.PORT_RAW:					return new Raw( PortName );				default:					if (debug)						System.out.println("unknown PortType  "+PortType+" passed to RXTXCommDriver.getCommPort()");			}		} catch( PortInUseException e ) {			if (debug)				System.out.println(					"Port "+PortName+" in use by another application");		}		return null;	}