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
delegateMethods 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, textOrNullMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.XContentParser
nextFieldName
-
Constructor Details
-
CopyingXContentParser
- Throws:
IOException
-
-
Method Details
-
nextToken
- Specified by:
nextTokenin interfaceXContentParser- Overrides:
nextTokenin classFilterXContentParser- Throws:
IOException
-
getBuilder
-