Code example for ObjectInput

Methods: readBooleanreadDoublereadIntreadLongreadUTFreadObject

0
 
	@Override 
	public void readExternal(ObjectInput in) throws IOException,
			ClassNotFoundException { 
		super.readExternal(in);
		this.layer = in.readUTF();
		this.categoryId = in.readInt();
		this.subCategoryId = in.readInt();
		this.creationDate = in.readLong();
		this.hasCheckins = in.readBoolean();
		this.rating = in.readDouble();
		this.numberOfReviews = in.readInt();
		this.revelance = in.readInt();
		if (in.readBoolean()) {
			this.thumbnail = in.readUTF();
		} 
		if (in.readBoolean()) {
			this.deal = (Deal)in.readObject();
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE