Code example for ObjectOutput

Methods: writeBytewriteShort

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