Code example for ObjectOutput

Methods: writeInt, writeShort

0
		return true; 
	} 
 
	public boolean execute(int key, short val) {
		try { 
			stream.writeInt(key);
			stream.writeShort(val);
		} catch (IOException e) {
			this.exception = e;
			return false; 
		} 
		return true; 
	} 
 
	public boolean execute(int key, Object val) {
		try { 
			stream.writeInt(key);
			stream.writeObject(val);
		} catch (IOException e) {
			this.exception = e;
			return false;