public int readWord() throws IOException {
  length+=2;
  int k1=in.read();
  if (k1 < 0)   return 0;
  return (k1 + (in.read() << 8)) & 0xffff;
}

public int readWord ( ) throws IOException { length += 2 ; int k1 = in . read ( ) ; if ( k1 < 0 ) return 0 ; return ( k1 + ( in . read ( ) << 8 ) ) & 0xffff ; }
read the next word from the inputstream .
