Code example for ObjectInput

Methods: readInt

0
 
	} 
 
	@Override 
	public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
		super.readExternal(in);
		bandwidth = in.readInt();
	} 
 
	@Override 
	public void writeExternal(ObjectOutput out) throws IOException {
		super.writeExternal(out);
		out.writeInt(bandwidth);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE