Code example for ObjectInput

Methods: read

0
	public void writeExternal(ObjectOutput out) throws IOException {
		out.write(partitionId);
	} 
 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		partitionId = in.read();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java