Code example for ObjectInput

Methods: readIntreadObject

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);
    } 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE