Code example for ObjectOutputStream

Methods: closeflushwriteObject

0
			if (!(obj instanceof Command)) { 
				arg0.sendDownstream(arg1); 
				return; 
			} 
			ByteArrayOutputStream out = new ByteArrayOutputStream(); 
			ObjectOutputStream oos = new ObjectOutputStream(out); 
			oos.writeObject(obj); 
			oos.flush(); 
			oos.close(); 
			ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(); 
			buffer.writeBytes(out.toByteArray()); 
			arg1.getChannel().write(buffer); 
		} else { 
			arg0.sendDownstream(arg1); 
		} 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE