@Override public final int readUnsignedShort() throws IOException {
  dis.readFully(work,0,2);
  return ((work[1] & 0xff) << 8 | (work[0] & 0xff));
}

@ Override public final int readUnsignedShort ( ) throws IOException { dis . readFully ( work , 0 , 2 ) ; return ( ( work [ 1 ] & 0xff ) << 8 | ( work [ 0 ] & 0xff ) ) ; }
read an unsigned short , 16 bits . like datainputstream . readunsignedshort except little endian . note , returns int even though it reads a short .
