Class Serializer

Direct Known Subclasses:
OutputStreamSerializer, Serializer.Null, SerializerSet.Inherit, SerializerSet.NoInherit, WriterSerializer

public class Serializer extends BeanTraverseContext
Parent class for all Juneau serializers.
Description

Base serializer class that serves as the parent class for all serializers.

The purpose of this class is:

  • Maintain a read-only configuration state of a serializer.
  • Create session objects used for serializing POJOs (i.e. SerializerSession).
  • Provide convenience methods for serializing POJOs without having to construct session objects.

Subclasses should (but are not required to) extend directly from OutputStreamSerializer or WriterSerializer depending on whether it's a stream or character based serializer.

Subclasses must implement parsing via one of the following methods:


Notes:
  • This class is thread safe and reusable.
See Also: