Code example for DataInputStream

Methods: readUnsignedShort

0
		return in.readUnsignedByte();
	} 
 
	public int uint16bit() 
			throws IOException { 
		return in.readUnsignedShort();
	} 
 
	public int int32bit() 
			throws IOException { 
		return in.readInt();
	} 
 
	public long int64bit() 
			throws IOException { 
		return in.readLong();
	} 
 
	public String uft()
			throws IOException { 
		return in.readUTF();