Class CopyingXContentParser

All Implemented Interfaces:
Closeable, AutoCloseable, XContentParser

public class CopyingXContentParser extends FilterXContentParserWrapper
A parser that copies data that was parsed into a XContentBuilder. This parser naturally has some memory and runtime overhead to perform said copying. Use with XContentSubParser to preserve the entire object.