Serializes Java beans using bean accessor methods. Only bean properties with both a getter and setter are serialized. This class is not as fast as {@link FieldSerializer} but is much faster and more efficient than Java serialization. Bytecodegeneration is used to invoke the bean propert methods, if possible.
BeanSerializer does not write header data, only the object data is stored. If the type of a bean property is not final (note primitives are final) then an extra byte is written for that property.
@see Serializer
@see Kryo#register(Class,Serializer)
@author Nathan Sweet