code: public static short readLittleEndianShort(DataInput in) throws IOException {
  		int low = in.readUnsignedByte() & 0xff;
  		int high = in.readUnsignedByte();
  		return (short) (high << 8 | low);
  	}
docs: Read a littleEndian short(16 bits) from DataInput
  @param in DataInput to read from
  @return short value of next 16 bits as littleEndian
  @throws IOException if an IO error happens