Class PooledMarshaller

java.lang.Object
org.apache.sis.xml.Pooled
org.apache.sis.xml.PooledMarshaller
All Implemented Interfaces:
Marshaller

final class PooledMarshaller extends Pooled implements Marshaller
Wraps a Marshaller in order to have some control on the modifications applied on it. This wrapper serves three purposes:
  • Save properties before modification, in order to restore them to their original values when the marshaller is recycled.
  • Constructs a SIS Context object on marshalling, in order to give additional information to the SIS object being marshalled.
  • Wraps the output stream in a TransformingWriter if the desired GML version in not the SIS native GML version.
Since:
0.3
Version:
1.0