Code example for DataOutput

Methods: write, writeInt

0
	    zip = in.readInt();
	 } 
	 
	  public void write(DataOutput out)
	    throws IOException { 
	    out.write(housenum);
	    Text.writeString(out, streetName != null ? streetName : "");
	    out.writeInt(zip);
	  } 
	  
	 public int getHousenum() { 
		return housenum;
	} 
 
	public void setHousenum(Integer housenum) {
		this.housenum = housenum;
	} 
 
	public String getStreetName() {
		return streetName;
	}