public final short readShort() throws java.io.IOException {
  readFully(scratch,0,2);
  return (short)((scratch[0] << 8) | (scratch[1] & 0xff));
}

public final short readShort ( ) throws java . io . IOException { readFully ( scratch , 0 , 2 ) ; return ( short ) ( ( scratch [ 0 ] << 8 ) | ( scratch [ 1 ] & 0xff ) ) ; }
see the general contract of the readshort method of datainput . bytes for this operation are read from the contained input stream .
