Class PooledUnmarshaller

java.lang.Object
org.apache.sis.xml.Pooled
org.apache.sis.xml.PooledUnmarshaller
All Implemented Interfaces:
Unmarshaller

final class PooledUnmarshaller extends Pooled implements Unmarshaller
Wraps a Unmarshaller 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 unmarshaller is recycled.
  • Constructs a SIS Context object on unmarshalling, in order to give additional information to the SIS object being unmarshalled.
  • Wraps the input stream in a TransformingReader if the document GML version in not the SIS native GML version.
Since:
0.3
Version:
1.0