Code example for DataInput

Methods: readUTF

0
	public void Update() { 
	} 
 
	@Override 
	public void readExternal(DataInput in) throws IOException {
		super.readExternal(in);
		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;