Code example for ObjectOutputStream

Methods: close, writeObject

0
	 * @see kernel.serialization.ISerializeStrategy#serializeClientDTO(kernel.dto.ClientDTO) 
	 */ 
	public byte [ ] serializeClientDTO( ClientDTO dto ) throws IOException 
	{ 
	        ByteArrayOutputStream bos = new ByteArrayOutputStream ( ); 
	        ObjectOutput out = new ObjectOutputStream ( bos ); 
		out.writeObject ( dto ); 
		out.close ( ); 
		return bos.toByteArray ( ); 
	} 
}