if(debug) System.out.println("CommPortIdentifier:open("+TheOwner + ", " +i+")"); if (Available == false) { synchronized (Sync) { fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED); try { wait(i); } catch ( InterruptedException e ) { } } } if (Available == false) { throw new gnu.io.PortInUseException(getCurrentOwner()); } if(commport == null) { commport = RXTXDriver.getCommPort(PortName,PortType); } if(commport != null) { Owner = TheOwner; Available=false; fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNED); return commport; } else { throw new gnu.io.PortInUseException( native_psmisc_report_owner(PortName)); }
if(debug) System.out.println("CommPortIdentifier:open(FileDescriptor)"); throw new UnsupportedCommOperationException();
	public synchronized CommPort open(String TheOwner, int i) 		throws gnu.io.PortInUseException 	{ 		if(debug) System.out.println("CommPortIdentifier:open("+TheOwner + ", " +i+")");		if (Available == false)		{			synchronized (Sync)			{				fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNERSHIP_REQUESTED);				try				{					wait(i);				}				catch ( InterruptedException e ) { }			}		}		if (Available == false)		{			throw new gnu.io.PortInUseException(getCurrentOwner());		}		if(commport == null)		{			commport = RXTXDriver.getCommPort(PortName,PortType);		}		if(commport != null)		{			Owner = TheOwner;			Available=false;			fireOwnershipEvent(CommPortOwnershipListener.PORT_OWNED);			return commport;		}		else		{			throw new gnu.io.PortInUseException(					native_psmisc_report_owner(PortName));		}	}