Code example for ObjectOutput

Methods: writeInt, writeLong

0
		return true; 
	} 
 
	public boolean execute(int key, long val) {
		try { 
			stream.writeInt(key);
			stream.writeLong(val);
		} catch (IOException e) {
			this.exception = e;
			return false; 
		} 
		return true; 
	} 
 
	public boolean execute(int key, double val) {
		try { 
			stream.writeInt(key);
			stream.writeDouble(val);
		} catch (IOException e) {
			this.exception = e;
			return false;