Serializes objects using direct field assignment. This is a very fast mechanism for serializing objects, often as good as {@link CustomSerialization}. FieldSerializer is many times smaller and faster than Java serialization. The fields should be public for optimal performance, which allows bytecode generation to be used instead of reflection.
FieldSerializer does not write header data, only the object data is stored. If the type of a field is not final (note primitives are final) then an extra byte is written for that field.
@see Serializer
@see Kryo#register(Class,Serializer)
@author Nathan Sweet