Code example for DataInputStream

Methods: readFloat

0
		return super.getNumBytes() + 4; 
	} 
 
	@Override 
	public void readData(DataInputStream input) throws IOException {
		super.readData(input);
		setSliderPosition(input.readFloat());
	} 
 
	@Override 
	public void writeData(DataOutputStream output) throws IOException {
		super.writeData(output);
		output.writeFloat(getSliderPosition());
	} 
 
	@Override 
	public float getSliderPosition() { 
		return slider;
	} 
 
	@Override