public class JsonParserDecorator
extends com.fasterxml.jackson.core.JsonParser
JsonParser
with new functionality and state. This decorator
prevents other decorators from having to implement all methods.Constructor and Description |
---|
JsonParserDecorator(com.fasterxml.jackson.core.JsonParser jsonParser) |
Modifier and Type | Method and Description |
---|---|
boolean |
canParseAsync() |
boolean |
canReadObjectId() |
boolean |
canReadTypeId() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
void |
clearCurrentToken() |
void |
close() |
com.fasterxml.jackson.core.JsonParser |
configure(com.fasterxml.jackson.core.JsonParser.Feature f,
boolean state) |
com.fasterxml.jackson.core.JsonToken |
currentToken() |
int |
currentTokenId() |
com.fasterxml.jackson.core.JsonParser |
disable(com.fasterxml.jackson.core.JsonParser.Feature f) |
com.fasterxml.jackson.core.JsonParser |
enable(com.fasterxml.jackson.core.JsonParser.Feature f) |
void |
finishToken() |
BigInteger |
getBigIntegerValue() |
byte[] |
getBinaryValue() |
byte[] |
getBinaryValue(com.fasterxml.jackson.core.Base64Variant bv) |
boolean |
getBooleanValue() |
byte |
getByteValue() |
com.fasterxml.jackson.core.ObjectCodec |
getCodec() |
com.fasterxml.jackson.core.JsonLocation |
getCurrentLocation() |
String |
getCurrentName() |
com.fasterxml.jackson.core.JsonToken |
getCurrentToken() |
int |
getCurrentTokenId() |
Object |
getCurrentValue() |
BigDecimal |
getDecimalValue() |
double |
getDoubleValue() |
Object |
getEmbeddedObject() |
int |
getFeatureMask() |
float |
getFloatValue() |
int |
getFormatFeatures() |
Object |
getInputSource() |
int |
getIntValue() |
com.fasterxml.jackson.core.JsonToken |
getLastClearedToken() |
long |
getLongValue() |
com.fasterxml.jackson.core.async.NonBlockingInputFeeder |
getNonBlockingInputFeeder() |
com.fasterxml.jackson.core.JsonParser.NumberType |
getNumberType() |
Number |
getNumberValue() |
Object |
getObjectId() |
com.fasterxml.jackson.core.JsonStreamContext |
getParsingContext() |
com.fasterxml.jackson.core.FormatSchema |
getSchema() |
short |
getShortValue() |
String |
getText() |
int |
getText(Writer writer) |
char[] |
getTextCharacters() |
int |
getTextLength() |
int |
getTextOffset() |
com.fasterxml.jackson.core.JsonLocation |
getTokenLocation() |
Object |
getTypeId() |
boolean |
getValueAsBoolean() |
boolean |
getValueAsBoolean(boolean def) |
double |
getValueAsDouble() |
double |
getValueAsDouble(double def) |
int |
getValueAsInt() |
int |
getValueAsInt(int def) |
long |
getValueAsLong() |
long |
getValueAsLong(long def) |
String |
getValueAsString() |
String |
getValueAsString(String def) |
boolean |
hasCurrentToken() |
boolean |
hasTextCharacters() |
boolean |
hasToken(com.fasterxml.jackson.core.JsonToken t) |
boolean |
hasTokenId(int id) |
boolean |
isClosed() |
boolean |
isEnabled(com.fasterxml.jackson.core.JsonParser.Feature f) |
boolean |
isExpectedStartArrayToken() |
boolean |
isExpectedStartObjectToken() |
boolean |
isNaN() |
Boolean |
nextBooleanValue() |
String |
nextFieldName() |
boolean |
nextFieldName(com.fasterxml.jackson.core.SerializableString str) |
int |
nextIntValue(int defaultValue) |
long |
nextLongValue(long defaultValue) |
String |
nextTextValue() |
com.fasterxml.jackson.core.JsonToken |
nextToken() |
com.fasterxml.jackson.core.JsonToken |
nextValue() |
void |
overrideCurrentName(String name) |
com.fasterxml.jackson.core.JsonParser |
overrideFormatFeatures(int values,
int mask) |
com.fasterxml.jackson.core.JsonParser |
overrideStdFeatures(int values,
int mask) |
int |
readBinaryValue(com.fasterxml.jackson.core.Base64Variant bv,
OutputStream out) |
int |
readBinaryValue(OutputStream out) |
<T> T |
readValueAs(Class<T> valueType) |
<T> T |
readValueAs(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef) |
<T extends com.fasterxml.jackson.core.TreeNode> |
readValueAsTree() |
<T> Iterator<T> |
readValuesAs(Class<T> valueType) |
<T> Iterator<T> |
readValuesAs(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) |
int |
releaseBuffered(OutputStream out) |
int |
releaseBuffered(Writer w) |
boolean |
requiresCustomCodec() |
void |
setCodec(com.fasterxml.jackson.core.ObjectCodec c) |
void |
setCurrentValue(Object v) |
com.fasterxml.jackson.core.JsonParser |
setFeatureMask(int mask)
Deprecated.
|
void |
setRequestPayloadOnError(byte[] payload,
String charset) |
void |
setRequestPayloadOnError(com.fasterxml.jackson.core.util.RequestPayload payload) |
void |
setRequestPayloadOnError(String payload) |
void |
setSchema(com.fasterxml.jackson.core.FormatSchema schema) |
com.fasterxml.jackson.core.JsonParser |
skipChildren() |
com.fasterxml.jackson.core.Version |
version() |
public JsonParserDecorator(com.fasterxml.jackson.core.JsonParser jsonParser)
public com.fasterxml.jackson.core.ObjectCodec getCodec()
getCodec
in class com.fasterxml.jackson.core.JsonParser
public void setCodec(com.fasterxml.jackson.core.ObjectCodec c)
setCodec
in class com.fasterxml.jackson.core.JsonParser
public Object getInputSource()
getInputSource
in class com.fasterxml.jackson.core.JsonParser
public Object getCurrentValue()
getCurrentValue
in class com.fasterxml.jackson.core.JsonParser
public void setCurrentValue(Object v)
setCurrentValue
in class com.fasterxml.jackson.core.JsonParser
public void setRequestPayloadOnError(com.fasterxml.jackson.core.util.RequestPayload payload)
setRequestPayloadOnError
in class com.fasterxml.jackson.core.JsonParser
public void setRequestPayloadOnError(byte[] payload, String charset)
setRequestPayloadOnError
in class com.fasterxml.jackson.core.JsonParser
public void setRequestPayloadOnError(String payload)
setRequestPayloadOnError
in class com.fasterxml.jackson.core.JsonParser
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
setSchema
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.FormatSchema getSchema()
getSchema
in class com.fasterxml.jackson.core.JsonParser
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
canUseSchema
in class com.fasterxml.jackson.core.JsonParser
public boolean requiresCustomCodec()
requiresCustomCodec
in class com.fasterxml.jackson.core.JsonParser
public boolean canParseAsync()
canParseAsync
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.async.NonBlockingInputFeeder getNonBlockingInputFeeder()
getNonBlockingInputFeeder
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.Version version()
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.JsonParser
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean isClosed()
isClosed
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonStreamContext getParsingContext()
getParsingContext
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonLocation getTokenLocation()
getTokenLocation
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
getCurrentLocation
in class com.fasterxml.jackson.core.JsonParser
public int releaseBuffered(OutputStream out) throws IOException
releaseBuffered
in class com.fasterxml.jackson.core.JsonParser
IOException
public int releaseBuffered(Writer w) throws IOException
releaseBuffered
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonParser enable(com.fasterxml.jackson.core.JsonParser.Feature f)
enable
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonParser disable(com.fasterxml.jackson.core.JsonParser.Feature f)
disable
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonParser configure(com.fasterxml.jackson.core.JsonParser.Feature f, boolean state)
configure
in class com.fasterxml.jackson.core.JsonParser
public boolean isEnabled(com.fasterxml.jackson.core.JsonParser.Feature f)
isEnabled
in class com.fasterxml.jackson.core.JsonParser
public int getFeatureMask()
getFeatureMask
in class com.fasterxml.jackson.core.JsonParser
@Deprecated public com.fasterxml.jackson.core.JsonParser setFeatureMask(int mask)
setFeatureMask
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonParser overrideStdFeatures(int values, int mask)
overrideStdFeatures
in class com.fasterxml.jackson.core.JsonParser
public int getFormatFeatures()
getFormatFeatures
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values, int mask)
overrideFormatFeatures
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonToken nextValue() throws IOException
nextValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString str) throws IOException
nextFieldName
in class com.fasterxml.jackson.core.JsonParser
IOException
public String nextFieldName() throws IOException
nextFieldName
in class com.fasterxml.jackson.core.JsonParser
IOException
public String nextTextValue() throws IOException
nextTextValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int nextIntValue(int defaultValue) throws IOException
nextIntValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public long nextLongValue(long defaultValue) throws IOException
nextLongValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public Boolean nextBooleanValue() throws IOException
nextBooleanValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonParser skipChildren() throws IOException
skipChildren
in class com.fasterxml.jackson.core.JsonParser
IOException
public void finishToken() throws IOException
finishToken
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonToken currentToken()
currentToken
in class com.fasterxml.jackson.core.JsonParser
public int currentTokenId()
currentTokenId
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonToken getCurrentToken()
getCurrentToken
in class com.fasterxml.jackson.core.JsonParser
public int getCurrentTokenId()
getCurrentTokenId
in class com.fasterxml.jackson.core.JsonParser
public boolean hasCurrentToken()
hasCurrentToken
in class com.fasterxml.jackson.core.JsonParser
public boolean hasTokenId(int id)
hasTokenId
in class com.fasterxml.jackson.core.JsonParser
public boolean hasToken(com.fasterxml.jackson.core.JsonToken t)
hasToken
in class com.fasterxml.jackson.core.JsonParser
public boolean isExpectedStartArrayToken()
isExpectedStartArrayToken
in class com.fasterxml.jackson.core.JsonParser
public boolean isExpectedStartObjectToken()
isExpectedStartObjectToken
in class com.fasterxml.jackson.core.JsonParser
public boolean isNaN() throws IOException
isNaN
in class com.fasterxml.jackson.core.JsonParser
IOException
public void clearCurrentToken()
clearCurrentToken
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonToken getLastClearedToken()
getLastClearedToken
in class com.fasterxml.jackson.core.JsonParser
public void overrideCurrentName(String name)
overrideCurrentName
in class com.fasterxml.jackson.core.JsonParser
public String getCurrentName() throws IOException
getCurrentName
in class com.fasterxml.jackson.core.JsonParser
IOException
public String getText() throws IOException
getText
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getText(Writer writer) throws IOException
getText
in class com.fasterxml.jackson.core.JsonParser
IOException
public char[] getTextCharacters() throws IOException
getTextCharacters
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getTextLength() throws IOException
getTextLength
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getTextOffset() throws IOException
getTextOffset
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean hasTextCharacters()
hasTextCharacters
in class com.fasterxml.jackson.core.JsonParser
public Number getNumberValue() throws IOException
getNumberValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public com.fasterxml.jackson.core.JsonParser.NumberType getNumberType() throws IOException
getNumberType
in class com.fasterxml.jackson.core.JsonParser
IOException
public byte getByteValue() throws IOException
getByteValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public short getShortValue() throws IOException
getShortValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getIntValue() throws IOException
getIntValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public long getLongValue() throws IOException
getLongValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public BigInteger getBigIntegerValue() throws IOException
getBigIntegerValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public float getFloatValue() throws IOException
getFloatValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public double getDoubleValue() throws IOException
getDoubleValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public BigDecimal getDecimalValue() throws IOException
getDecimalValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean getBooleanValue() throws IOException
getBooleanValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public Object getEmbeddedObject() throws IOException
getEmbeddedObject
in class com.fasterxml.jackson.core.JsonParser
IOException
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant bv) throws IOException
getBinaryValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public byte[] getBinaryValue() throws IOException
getBinaryValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int readBinaryValue(OutputStream out) throws IOException
readBinaryValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int readBinaryValue(com.fasterxml.jackson.core.Base64Variant bv, OutputStream out) throws IOException
readBinaryValue
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getValueAsInt() throws IOException
getValueAsInt
in class com.fasterxml.jackson.core.JsonParser
IOException
public int getValueAsInt(int def) throws IOException
getValueAsInt
in class com.fasterxml.jackson.core.JsonParser
IOException
public long getValueAsLong() throws IOException
getValueAsLong
in class com.fasterxml.jackson.core.JsonParser
IOException
public long getValueAsLong(long def) throws IOException
getValueAsLong
in class com.fasterxml.jackson.core.JsonParser
IOException
public double getValueAsDouble() throws IOException
getValueAsDouble
in class com.fasterxml.jackson.core.JsonParser
IOException
public double getValueAsDouble(double def) throws IOException
getValueAsDouble
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean getValueAsBoolean() throws IOException
getValueAsBoolean
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean getValueAsBoolean(boolean def) throws IOException
getValueAsBoolean
in class com.fasterxml.jackson.core.JsonParser
IOException
public String getValueAsString() throws IOException
getValueAsString
in class com.fasterxml.jackson.core.JsonParser
IOException
public String getValueAsString(String def) throws IOException
getValueAsString
in class com.fasterxml.jackson.core.JsonParser
IOException
public boolean canReadObjectId()
canReadObjectId
in class com.fasterxml.jackson.core.JsonParser
public boolean canReadTypeId()
canReadTypeId
in class com.fasterxml.jackson.core.JsonParser
public Object getObjectId() throws IOException
getObjectId
in class com.fasterxml.jackson.core.JsonParser
IOException
public Object getTypeId() throws IOException
getTypeId
in class com.fasterxml.jackson.core.JsonParser
IOException
public <T> T readValueAs(Class<T> valueType) throws IOException
readValueAs
in class com.fasterxml.jackson.core.JsonParser
IOException
public <T> T readValueAs(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef) throws IOException
readValueAs
in class com.fasterxml.jackson.core.JsonParser
IOException
public <T> Iterator<T> readValuesAs(Class<T> valueType) throws IOException
readValuesAs
in class com.fasterxml.jackson.core.JsonParser
IOException
public <T> Iterator<T> readValuesAs(com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) throws IOException
readValuesAs
in class com.fasterxml.jackson.core.JsonParser
IOException
public <T extends com.fasterxml.jackson.core.TreeNode> T readValueAsTree() throws IOException
readValueAsTree
in class com.fasterxml.jackson.core.JsonParser
IOException
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.