public static int readUINT16(InputStream stream) throws IOException {
  int result=stream.read();
  result|=stream.read() << 8;
  return result;
}

public static int readUINT16 ( InputStream stream ) throws IOException { int result = stream . read ( ) ; result |= stream . read ( ) << 8 ; return result ; }
reads 2 bytes from stream and interprets them as uint16 . < br >
