public static int receiveChar() throws IOException {
  log.trace(String.format("waiting for RX char"));
  int result=receiveChar(serialPortDescriptor);
  if (result < 0) {
    throw new IOException(String.format("receiveChar:%02X",result));
  }
  return result;
}

public static int receiveChar ( ) throws IOException { log . trace ( String . format ( "waiting for RX char" ) ) ; int result = receiveChar ( serialPortDescriptor ) ; if ( result < 0 ) { throw new IOException ( String . format ( "receiveChar:%02X" , result ) ) ; } return result ; }
receive a character from com selectedport
