Code example for ObjectOutput

Methods: writeLong, writeObject

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