static public CommPortIdentifier getPortIdentifier ( CommPort p ) throws NoSuchPortException { LOGGER . fine ( "CommPortIdentifier:getPortIdentifier(CommPort)" ) ; CommPortIdentifier c ; synchronized ( Sync ) { c = CommPortIndex ; while ( c != null && c . commPort != p ) { c = c . next ; } } if ( c != null ) { return ( c ) ; } LOGGER . fine ( "not found!" + p . getName ( ) ) ; throw new NoSuchPortException ( ) ; }
Gets communication port identifier