java.lang.Object
org.elasticsearch.xcontent.FilterXContentParser
org.elasticsearch.xcontent.FilterXContentParserWrapper
org.elasticsearch.xcontent.XContentSubParser
- All Implemented Interfaces:
Closeable,AutoCloseable,XContentParser
- Direct Known Subclasses:
FlatteningXContentParser
Wrapper for a XContentParser that makes a single object/array look like a complete document.
The wrapper prevents the parsing logic to consume tokens outside of the wrapped object as well
as skipping to the end of the object in case of a parsing error. The wrapper is intended to be
used for parsing objects that should be ignored if they are malformed.
-
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, contentType, currentName, currentToken, doubleValue, doubleValue, floatValue, floatValue, getDeprecationHandler, getRestApiVersion, getTokenLocation, getXContentRegistry, hasTextCharacters, intValue, intValue, isBooleanValue, list, listOrderedMap, longValue, longValue, map, map, mapOrdered, mapStrings, namedObject, numberType, numberValue, objectBytes, objectText, shortValue, shortValue, 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
-
XContentSubParser
-
-
Method Details
-
nextToken
- Specified by:
nextTokenin interfaceXContentParser- Overrides:
nextTokenin classFilterXContentParser- Throws:
IOException
-
skipChildren
- Specified by:
skipChildrenin interfaceXContentParser- Overrides:
skipChildrenin classFilterXContentParser- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceXContentParser- Overrides:
isClosedin classFilterXContentParser
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterXContentParser- Throws:
IOException
-