Code example for DataOutput

Methods: writeBytes, writeDouble

0
		change = in.readDouble();
	} 
 
	@Override 
	public void write(DataOutput out) throws IOException {
		out.writeUTF(symbol);
		out.writeUTF(date);
		out.writeDouble(change);
	} 
 
	public String getSymbol() {
		return symbol;
	} 
 
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	} 
 
	public String getDate() {
		return date;
	}