public short readShort() throws IOException {
  short v=dataInput.readShort();
  offset+=2;
  available-=2;
  return v;
}

public short readShort ( ) throws IOException { short v = dataInput . readShort ( ) ; offset += 2 ; available -= 2 ; return v ; }
reads a single short .
