Code example for ObjectInput

Methods: readByte

0
		this.stop = stop;
	} 
 
	@Override 
	public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException {
		start = input.readByte();
		stop = input.readByte();
	} 
 
	@Override 
	public void writeExternal(ObjectOutput output) throws IOException {
		output.writeByte(start);
		output.writeByte(stop);
	} 
}