Code example for ObjectInput

Methods: readInt

0
			out.writeInt( addressId );
		} 
 
		@Override 
		public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
			addressId = in.readInt();
		} 
 
		@Override 
		public void writeTo(DataOutput dataOutput) throws Exception {
			dataOutput.writeInt( addressId );
		} 
 
		@Override 
		public void readFrom(DataInput dataInput) throws Exception {
			addressId = dataInput.readInt();
		} 
 
		@Override 
		public String toString() {
Contextual code suggestions in your IDE  Get Codota for Java