Code example for DataInputStream

Methods: read, readShort

0
		return input.readFloat();
	} 
 
	@Override 
	public byte[] readBytes() throws IOException { 
		short count = input.readShort();
		byte[] bytes = new byte[count];
		input.read(bytes);
		return bytes;
	} 
}