public int readUShort() {byte[] buf = new byte[LittleEndianConsts.SHORT_SIZE];try {checkEOF(read(buf), LittleEndianConsts.SHORT_SIZE);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getUShort(buf);}
public int ReadUShort(){int ch1;int ch2;try{ch1 = in1.ReadByte();ch2 = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch1 | ch2);return (ch2 << 8) + (ch1 << 0);}