java.lang.Object
org.elasticsearch.xcontent.FilterXContentParser
org.elasticsearch.xcontent.FilterXContentParserWrapper
org.elasticsearch.xcontent.CopyingXContentParser
- All Implemented Interfaces:
Closeable
,AutoCloseable
,XContentParser
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.XContentParser
XContentParser.NumberType, XContentParser.Token
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xcontent.FilterXContentParserWrapper
delegate
Methods inherited from class org.elasticsearch.xcontent.FilterXContentParser
allowDuplicateKeys, binaryValue, booleanValue, charBuffer, charBufferOrNull, close, contentType, currentName, currentToken, doubleValue, doubleValue, floatValue, floatValue, getDeprecationHandler, getRestApiVersion, getTokenLocation, getXContentRegistry, hasTextCharacters, intValue, intValue, isBooleanValue, isClosed, list, listOrderedMap, longValue, longValue, map, map, mapOrdered, mapStrings, namedObject, numberType, numberValue, objectBytes, objectText, shortValue, shortValue, skipChildren, text, textCharacters, textLength, textOffset, textOrNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.XContentParser
nextFieldName
-
Constructor Details
-
CopyingXContentParser
- Throws:
IOException
-
-
Method Details
-
nextToken
- Specified by:
nextToken
in interfaceXContentParser
- Overrides:
nextToken
in classFilterXContentParser
- Throws:
IOException
-
getBuilder
-