Code example for ObjectInput

Methods: readInt, readObject

0
		this.lastBallot = lastBallot;
		this.lastCStructAccepted = lastCStructAccepted;
	} 
	 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        super.readExternal(in);
        lastBallot = in.readInt();
        lastCStructAccepted = (CStruct) in.readObject();
    } 
     
    public void writeExternal(ObjectOutput out) throws IOException {
    	super.writeExternal(out);
    	out.writeInt(lastBallot);
    	out.writeObject(lastCStructAccepted);
    } 
	 
}