Code example for DataOutput

Methods: writeUTF

0
		value = in.readUTF();
	} 
 
	@Override 
	public void writeExternal(DataOutput out) throws IOException {
		super.writeExternal(out);
		out.writeUTF(value);
	} 
 
	@Override 
	public boolean equals(Object obj) {
		if(obj instanceof StubGameObject)
		{ 
			if(((StubGameObject)obj).value.equals(this.value))
				return true; 
		} 
		return false; 
	} 
 
	@Override 
	public int getGameObjectTypeId() {