Code example for DataInputStream

Methods: readUnsignedByte

0
	public byte readByte () throws IOException { 
		return din.readByte();
	} 
 
	public int readUnsignedByte () throws IOException { 
		return din.readUnsignedByte();
	} 
 
	public short readShort () throws IOException { 
		int low = din.read();
		int high = din.read();
		return (short)((high << 8) | (low & 0xff));
	} 
 
	public int readUnsignedShort () throws IOException { 
		int low = din.read();
		int high = din.read();
		return ((high & 0xff) << 8) | (low & 0xff);
	} 
 
	public char readChar () throws IOException {