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
delegate
Methods 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, 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
-
XContentSubParser
-
-
Method Details
-
nextToken
- Specified by:
nextToken
in interfaceXContentParser
- Overrides:
nextToken
in classFilterXContentParser
- Throws:
IOException
-
skipChildren
- Specified by:
skipChildren
in interfaceXContentParser
- Overrides:
skipChildren
in classFilterXContentParser
- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceXContentParser
- Overrides:
isClosed
in classFilterXContentParser
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterXContentParser
- Throws:
IOException
-