public class JavaPropsParser
extends com.fasterxml.jackson.core.base.ParserMinimalBase
Modifier and Type | Field and Description |
---|---|
protected byte[] |
_binaryValue |
protected com.fasterxml.jackson.core.util.ByteArrayBuilder |
_byteArrayBuilder |
protected boolean |
_closed |
protected Object |
_inputSource
Although most massaging is done later, caller may be interested in the
ultimate source.
|
protected com.fasterxml.jackson.core.ObjectCodec |
_objectCodec
Codec used for data binding when (if) requested.
|
protected JPropReadContext |
_readContext |
protected JavaPropsSchema |
_schema
Schema we use for parsing Properties into structure of some kind.
|
protected Properties |
_sourceProperties
Actual
Properties that were parsed and handed to us
for further processing. |
protected static JavaPropsSchema |
DEFAULT_SCHEMA |
_currToken, _lastClearedToken, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_TAB, MAX_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN
Constructor and Description |
---|
JavaPropsParser(com.fasterxml.jackson.core.io.IOContext ctxt,
Object inputSource,
int parserFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
Properties sourceProps) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.core.util.ByteArrayBuilder |
_getByteArrayBuilder() |
protected void |
_handleEOF() |
protected <T> T |
_noNumbers() |
boolean |
canReadObjectId() |
boolean |
canReadTypeId() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
void |
close() |
BigInteger |
getBigIntegerValue() |
byte[] |
getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant) |
com.fasterxml.jackson.core.ObjectCodec |
getCodec() |
com.fasterxml.jackson.core.JsonLocation |
getCurrentLocation() |
String |
getCurrentName() |
BigDecimal |
getDecimalValue() |
double |
getDoubleValue() |
Object |
getEmbeddedObject() |
float |
getFloatValue() |
Object |
getInputSource() |
int |
getIntValue() |
long |
getLongValue() |
com.fasterxml.jackson.core.JsonParser.NumberType |
getNumberType() |
Number |
getNumberValue() |
com.fasterxml.jackson.core.JsonStreamContext |
getParsingContext() |
JavaPropsSchema |
getSchema() |
String |
getText() |
int |
getText(Writer writer) |
char[] |
getTextCharacters() |
int |
getTextLength() |
int |
getTextOffset() |
com.fasterxml.jackson.core.JsonLocation |
getTokenLocation() |
boolean |
hasTextCharacters() |
boolean |
isClosed() |
com.fasterxml.jackson.core.JsonToken |
nextToken() |
void |
overrideCurrentName(String name) |
boolean |
requiresCustomCodec() |
void |
setCodec(com.fasterxml.jackson.core.ObjectCodec c) |
void |
setSchema(com.fasterxml.jackson.core.FormatSchema schema) |
com.fasterxml.jackson.core.Version |
version() |
_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _handleUnrecognizedCharacterEscape, _hasTextualNull, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _throwUnquotedSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowLong, reportUnexpectedNumberChar, skipChildren
_codec, _constructError, _reportUnsupportedOperation, canParseAsync, configure, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getFormatFeatures, getNonBlockingInputFeeder, getObjectId, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isNaN, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, overrideFormatFeatures, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError
protected static final JavaPropsSchema DEFAULT_SCHEMA
protected com.fasterxml.jackson.core.ObjectCodec _objectCodec
protected final Object _inputSource
protected final Properties _sourceProperties
Properties
that were parsed and handed to us
for further processing.protected JavaPropsSchema _schema
protected JPropReadContext _readContext
protected boolean _closed
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
protected byte[] _binaryValue
public JavaPropsParser(com.fasterxml.jackson.core.io.IOContext ctxt, Object inputSource, int parserFeatures, com.fasterxml.jackson.core.ObjectCodec codec, Properties sourceProps)
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 setSchema(com.fasterxml.jackson.core.FormatSchema schema)
setSchema
in class com.fasterxml.jackson.core.JsonParser
public JavaPropsSchema getSchema()
getSchema
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.base.ParserMinimalBase
IOException
public boolean isClosed()
isClosed
in class com.fasterxml.jackson.core.base.ParserMinimalBase
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 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 canReadObjectId()
canReadObjectId
in class com.fasterxml.jackson.core.JsonParser
public boolean canReadTypeId()
canReadTypeId
in class com.fasterxml.jackson.core.JsonParser
public com.fasterxml.jackson.core.JsonStreamContext getParsingContext()
getParsingContext
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public void overrideCurrentName(String name)
overrideCurrentName
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public String getCurrentName() throws IOException
getCurrentName
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public com.fasterxml.jackson.core.JsonToken nextToken() throws IOException
nextToken
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public String getText() throws IOException
getText
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public boolean hasTextCharacters()
hasTextCharacters
in class com.fasterxml.jackson.core.base.ParserMinimalBase
public char[] getTextCharacters() throws IOException
getTextCharacters
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public int getTextLength() throws IOException
getTextLength
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public int getTextOffset() throws IOException
getTextOffset
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public int getText(Writer writer) throws IOException
getText
in class com.fasterxml.jackson.core.JsonParser
IOException
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant variant) throws IOException
getBinaryValue
in class com.fasterxml.jackson.core.base.ParserMinimalBase
IOException
public com.fasterxml.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder()
public Object getEmbeddedObject() throws IOException
getEmbeddedObject
in class com.fasterxml.jackson.core.JsonParser
IOException
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 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 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
protected <T> T _noNumbers() throws IOException
IOException
protected void _handleEOF() throws com.fasterxml.jackson.core.JsonParseException
_handleEOF
in class com.fasterxml.jackson.core.base.ParserMinimalBase
com.fasterxml.jackson.core.JsonParseException
Copyright © 2017 FasterXML. All rights reserved.