Code example for ObjectOutputStream

Methods: writeIntwriteObject

0
		this.callbackTag = callbackTag;
		this.callbackArgs = callbackArgs;
	} 
 
	public void encodeContents(ObjectOutputStream oos) throws IOException {
		super.encodeContents(oos);
		oos.writeInt(this.callbackTag);
		oos.writeObject(this.callbackArgs);
	} 
 
	public void decodeContents(ObjectInputStream ois) throws IOException, ClassNotFoundException {
		super.decodeContents(ois);
		this.callbackTag = ois.readInt();
		this.callbackArgs = (Serializable[][])ois.readObject();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java