public static final int readInt(InputStream is) throws IOException {
  return (((0xFF & is.read()) << 8) | (0xFF & is.read()));
}

public static final int readInt ( InputStream is ) throws IOException { return ( ( ( 0xFF & is . read ( ) ) << 8 ) | ( 0xFF & is . read ( ) ) ) ; }
reads a two byte integer value from an inputstream .
