code: public static short readShortLittleEndian(IO.ReadableByteStream io) throws IOException {
  		int value = io.read();
  		if (value < 0) throw new EOFException();
  		int i = io.read();
  		if (i < 0) throw new EOFException();
  		return (short)(value | (i << 8));
  	}
docs: little-endian or intel format.