Code example for ObjectInput

Methods: readLongreadUTF

0
		return counterImpl;
	} 
 
	@Override 
	public void readExternal(ObjectInput objectInput) throws IOException {
		name = objectInput.readUTF();
		currentId = objectInput.readLong();
	} 
 
	@Override 
	public void writeExternal(ObjectOutput objectOutput)
		throws IOException {
		if (name == null) {
			objectOutput.writeUTF(StringPool.BLANK);
		} 
		else { 
			objectOutput.writeUTF(name);
		} 
 
		objectOutput.writeLong(currentId);
Connect your IDE to all the code out there  Get Codota for Java