Class JavaPropsParser
java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
tools.jackson.dataformat.javaprop.JavaPropsParser
- All Implemented Interfaces:
Closeable, AutoCloseable, tools.jackson.core.Versioned
public class JavaPropsParser
extends tools.jackson.core.base.ParserMinimalBase
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JsonParser
tools.jackson.core.JsonParser.NumberType, tools.jackson.core.JsonParser.NumberTypeFP -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected tools.jackson.core.util.ByteArrayBuilderprotected final ObjectAlthough most massaging is done later, caller may be interested in the ultimate source.protected JavaPropsSchemaSchema we use for parsing Properties into structure of some kind.protected final Map<?, ?> ActualProperties(or, actually, anyMapwith String keys, values) that were parsed and handed to us for further processing.protected JPropReadContextprotected static final JavaPropsSchemaprotected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> Properties capabilities slightly different from defaults, having untyped (text-only) scalars.Fields inherited from class tools.jackson.core.base.ParserMinimalBase
_closed, _currToken, _ioContext, _lastClearedToken, _objectReadContext, _streamReadConstraints, _streamReadFeatures, _tokenCount, _trackMaxTokenCount, 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_RS, INT_SLASH, INT_SPACE, INT_TAB, MAX_BYTE_I, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MAX_SHORT_I, MIN_BYTE_I, MIN_INT_D, MIN_INT_L, MIN_LONG_D, MIN_SHORT_I, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN, STREAM_READ_FEATURE_DEFAULTSFields inherited from class tools.jackson.core.JsonParser
DEFAULT_READ_CAPABILITIES -
Constructor Summary
ConstructorsConstructorDescriptionJavaPropsParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, JavaPropsSchema schema, Object inputSource, Map<?, ?> sourceMap) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidtools.jackson.core.util.ByteArrayBuilderprotected voidprotected <T> Tprotected voidvoidbooleanbooleantools.jackson.core.TokenStreamLocationtools.jackson.core.TokenStreamLocationbyte[]getBinaryValue(tools.jackson.core.Base64Variant variant) doublefloatintlongtools.jackson.core.JsonParser.NumberTypeintchar[]intintbooleanbooleanisNaN()tools.jackson.core.JsonTokentools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> tools.jackson.core.TokenStreamContexttools.jackson.core.Versionversion()Methods inherited from class tools.jackson.core.base.ParserMinimalBase
_constructInputCoercion, _constructNotNumericType, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _nullSafeUpdateToken, _reportBadInputStream, _reportBadReader, _reportError, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidNumber, _reportInvalidSpace, _reportInvalidUTF8Surrogate, _reportMissingRootWS, _reportOverflowByte, _reportOverflowInt, _reportOverflowInt, _reportOverflowInt, _reportOverflowLong, _reportOverflowLong, _reportOverflowLong, _reportOverflowShort, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _updateToken, _updateTokenToNA, _updateTokenToNull, _wrapIOFailure, clearCurrentToken, close, currentNameMatch, currentToken, currentTokenCount, currentTokenId, finishToken, getBooleanValue, getByteValue, getLastClearedToken, getNumberTypeFP, getNumberValueDeferred, getNumberValueExact, getShortValue, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isClosed, isEnabled, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextName, nextName, nextNameMatch, nextValue, objectReadContext, readValueAs, readValueAs, readValueAs, readValueAsTree, skipChildren, streamReadConstraints, streamReadFeaturesMethods inherited from class tools.jackson.core.JsonParser
_constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, canParseAsync, getBinaryValue, getObjectId, getText, getTextCharacters, getTextLength, getTextOffset, getTypeId, getValueAsBoolean, getValueAsDouble, nextBooleanValue, nextIntValue, nextLongValue, nextStringValue, nonBlockingInputFeeder, readBinaryValue, readBinaryValue, readString, releaseBuffered, releaseBuffered
-
Field Details
-
DEFAULT_SCHEMA
-
STREAM_READ_CAPABILITIES
protected static final tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> STREAM_READ_CAPABILITIESProperties capabilities slightly different from defaults, having untyped (text-only) scalars. -
_inputSource
Although most massaging is done later, caller may be interested in the ultimate source. -
_sourceContent
ActualProperties(or, actually, anyMapwith String keys, values) that were parsed and handed to us for further processing. -
_schema
Schema we use for parsing Properties into structure of some kind. -
_streamReadContext
-
_byteArrayBuilder
protected tools.jackson.core.util.ByteArrayBuilder _byteArrayBuilder -
_binaryValue
protected byte[] _binaryValue
-
-
Constructor Details
-
JavaPropsParser
public JavaPropsParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, JavaPropsSchema schema, Object inputSource, Map<?, ?> sourceMap)
-
-
Method Details
-
version
public tools.jackson.core.Version version()- Specified by:
versionin interfacetools.jackson.core.Versioned- Specified by:
versionin classtools.jackson.core.JsonParser
-
getSchema
- Overrides:
getSchemain classtools.jackson.core.JsonParser
-
_closeInput
- Specified by:
_closeInputin classtools.jackson.core.base.ParserMinimalBase- Throws:
IOException
-
_releaseBuffers
protected void _releaseBuffers()- Specified by:
_releaseBuffersin classtools.jackson.core.base.ParserMinimalBase
-
streamReadInputSource
- Specified by:
streamReadInputSourcein classtools.jackson.core.JsonParser
-
canReadObjectId
public boolean canReadObjectId()- Overrides:
canReadObjectIdin classtools.jackson.core.JsonParser
-
canReadTypeId
public boolean canReadTypeId()- Overrides:
canReadTypeIdin classtools.jackson.core.JsonParser
-
streamReadCapabilities
public tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> streamReadCapabilities()- Overrides:
streamReadCapabilitiesin classtools.jackson.core.base.ParserMinimalBase
-
streamReadContext
public tools.jackson.core.TokenStreamContext streamReadContext()- Specified by:
streamReadContextin classtools.jackson.core.JsonParser
-
assignCurrentValue
- Specified by:
assignCurrentValuein classtools.jackson.core.JsonParser
-
currentValue
- Specified by:
currentValuein classtools.jackson.core.JsonParser
-
currentName
- Specified by:
currentNamein classtools.jackson.core.JsonParser
-
nextToken
public tools.jackson.core.JsonToken nextToken() throws tools.jackson.core.JacksonException- Specified by:
nextTokenin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getString
- Specified by:
getStringin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
hasStringCharacters
public boolean hasStringCharacters()- Specified by:
hasStringCharactersin classtools.jackson.core.JsonParser
-
getStringCharacters
public char[] getStringCharacters() throws tools.jackson.core.JacksonException- Specified by:
getStringCharactersin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getStringLength
public int getStringLength() throws tools.jackson.core.JacksonException- Specified by:
getStringLengthin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getStringOffset
public int getStringOffset() throws tools.jackson.core.JacksonException- Specified by:
getStringOffsetin classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getString
- Overrides:
getStringin classtools.jackson.core.base.ParserMinimalBase- Throws:
tools.jackson.core.JacksonException
-
getBinaryValue
public byte[] getBinaryValue(tools.jackson.core.Base64Variant variant) throws tools.jackson.core.JacksonException - Specified by:
getBinaryValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
_getByteArrayBuilder
public tools.jackson.core.util.ByteArrayBuilder _getByteArrayBuilder() -
getEmbeddedObject
- Overrides:
getEmbeddedObjectin classtools.jackson.core.base.ParserMinimalBase- Throws:
tools.jackson.core.JacksonException
-
currentTokenLocation
public tools.jackson.core.TokenStreamLocation currentTokenLocation()- Specified by:
currentTokenLocationin classtools.jackson.core.JsonParser
-
currentLocation
public tools.jackson.core.TokenStreamLocation currentLocation()- Specified by:
currentLocationin classtools.jackson.core.JsonParser
-
getNumberValue
- Specified by:
getNumberValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getNumberType
public tools.jackson.core.JsonParser.NumberType getNumberType() throws tools.jackson.core.JacksonException- Specified by:
getNumberTypein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getIntValue
public int getIntValue() throws tools.jackson.core.JacksonException- Specified by:
getIntValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getLongValue
public long getLongValue() throws tools.jackson.core.JacksonException- Specified by:
getLongValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getBigIntegerValue
- Specified by:
getBigIntegerValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getFloatValue
public float getFloatValue() throws tools.jackson.core.JacksonException- Specified by:
getFloatValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getDoubleValue
public double getDoubleValue() throws tools.jackson.core.JacksonException- Specified by:
getDoubleValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
getDecimalValue
- Specified by:
getDecimalValuein classtools.jackson.core.JsonParser- Throws:
tools.jackson.core.JacksonException
-
isNaN
public boolean isNaN()- Specified by:
isNaNin classtools.jackson.core.JsonParser
-
_noNumbers
protected <T> T _noNumbers() throws tools.jackson.core.exc.StreamReadException- Throws:
tools.jackson.core.exc.StreamReadException
-
_handleEOF
protected void _handleEOF() throws tools.jackson.core.exc.StreamReadException- Specified by:
_handleEOFin classtools.jackson.core.base.ParserMinimalBase- Throws:
tools.jackson.core.exc.StreamReadException
-