An object of this class will (re)construct the DocumentAttachment (or subclass thereof).
A DocumentSerializer needs/wants to convert the attachment into a compact, legible string.
A DocumentSerializer needs/wants to convert the attachment into a compact, legible string. The default implementation for use in an emergency just converts the Java ObjectOutputStream into a string. A good implementation of the trait will override this behavior.
These are interfaces required for interaction with the DocumentSerializer.