Class JsonXContentParser
java.lang.Object
org.opensearch.core.xcontent.AbstractXContentParser
org.opensearch.common.xcontent.json.JsonXContentParser
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.core.xcontent.XContentParser
- Direct Known Subclasses:
CborXContentParser,SmileXContentParser,YamlXContentParser
public class JsonXContentParser
extends org.opensearch.core.xcontent.AbstractXContentParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.XContentParser
org.opensearch.core.xcontent.XContentParser.NumberType, org.opensearch.core.xcontent.XContentParser.Token -
Field Summary
Fields inherited from class org.opensearch.core.xcontent.AbstractXContentParser
DEFAULT_NUMBER_COERCE_POLICY -
Constructor Summary
ConstructorsConstructorDescriptionJsonXContentParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, com.fasterxml.jackson.core.JsonParser parser) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voidclose()org.opensearch.core.xcontent.XContentParser.Tokenprotected booleandoublefloatintlongshortorg.opensearch.core.xcontent.XContentLocationbooleanbooleanisClosed()org.opensearch.core.xcontent.XContentParser.Tokenorg.opensearch.core.xcontent.XContentParser.NumberTypevoidtext()char[]intintMethods inherited from class org.opensearch.core.xcontent.AbstractXContentParser
bigIntegerValue, bigIntegerValue, booleanValue, charBufferOrNull, doubleValue, doubleValue, floatValue, floatValue, getDeprecationHandler, getXContentRegistry, intValue, intValue, isBooleanValue, list, listOrderedMap, longValue, longValue, map, map, mapOrdered, mapStrings, namedObject, readValue, shortValue, shortValue, textOrNull
-
Constructor Details
-
JsonXContentParser
public JsonXContentParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, com.fasterxml.jackson.core.JsonParser parser)
-
-
Method Details
-
contentType
-
nextToken
- Throws:
IOException
-
skipChildren
- Throws:
IOException
-
currentToken
public org.opensearch.core.xcontent.XContentParser.Token currentToken() -
numberType
- Throws:
IOException
-
currentName
- Throws:
IOException
-
doBooleanValue
- Specified by:
doBooleanValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
text
- Throws:
IOException
-
charBuffer
- Throws:
IOException
-
objectText
- Throws:
IOException
-
objectBytes
- Throws:
IOException
-
hasTextCharacters
public boolean hasTextCharacters() -
textCharacters
- Throws:
IOException
-
textLength
- Throws:
IOException
-
textOffset
- Throws:
IOException
-
numberValue
- Throws:
IOException
-
doShortValue
- Specified by:
doShortValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
doIntValue
- Specified by:
doIntValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
doLongValue
- Specified by:
doLongValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
doFloatValue
- Specified by:
doFloatValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
doDoubleValue
- Specified by:
doDoubleValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
doBigIntegerValue
- Specified by:
doBigIntegerValuein classorg.opensearch.core.xcontent.AbstractXContentParser- Throws:
IOException
-
binaryValue
- Throws:
IOException
-
getTokenLocation
public org.opensearch.core.xcontent.XContentLocation getTokenLocation() -
close
public void close() -
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceorg.opensearch.core.xcontent.XContentParser- Specified by:
isClosedin classorg.opensearch.core.xcontent.AbstractXContentParser
-