Class FromStringDeserializer.Std
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<T>
-
- com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
-
- com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
-
- com.fasterxml.jackson.databind.deser.std.FromStringDeserializer<java.lang.Object>
-
- com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.Std
-
- All Implemented Interfaces:
NullValueProvider
,java.io.Serializable
- Enclosing class:
- FromStringDeserializer<T>
public static class FromStringDeserializer.Std extends FromStringDeserializer<java.lang.Object>
"Chameleon" deserializer that works on simple types that are deserialized from a simple String.- Since:
- 2.4
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
FromStringDeserializer.Std
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_kind
static int
STD_CHARSET
static int
STD_CLASS
static int
STD_CURRENCY
static int
STD_FILE
static int
STD_INET_ADDRESS
static int
STD_INET_SOCKET_ADDRESS
static int
STD_JAVA_TYPE
static int
STD_LOCALE
static int
STD_PATTERN
static int
STD_STRING_BUILDER
static int
STD_TIME_ZONE
static int
STD_URI
static int
STD_URL
-
Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_valueClass, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Std(java.lang.Class<?> valueType, int kind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
_deserialize(java.lang.String value, DeserializationContext ctxt)
protected java.lang.Object
_deserializeFromEmptyString()
protected int
_firstHyphenOrUnderscore(java.lang.String str)
-
Methods inherited from class com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
_deserializeEmbedded, deserialize, findDeserializer, types
-
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer
deserialize, deserializeWithType, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate
-
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
-
-
-
-
Field Detail
-
STD_FILE
public static final int STD_FILE
- See Also:
- Constant Field Values
-
STD_URL
public static final int STD_URL
- See Also:
- Constant Field Values
-
STD_URI
public static final int STD_URI
- See Also:
- Constant Field Values
-
STD_CLASS
public static final int STD_CLASS
- See Also:
- Constant Field Values
-
STD_JAVA_TYPE
public static final int STD_JAVA_TYPE
- See Also:
- Constant Field Values
-
STD_CURRENCY
public static final int STD_CURRENCY
- See Also:
- Constant Field Values
-
STD_PATTERN
public static final int STD_PATTERN
- See Also:
- Constant Field Values
-
STD_LOCALE
public static final int STD_LOCALE
- See Also:
- Constant Field Values
-
STD_CHARSET
public static final int STD_CHARSET
- See Also:
- Constant Field Values
-
STD_TIME_ZONE
public static final int STD_TIME_ZONE
- See Also:
- Constant Field Values
-
STD_INET_ADDRESS
public static final int STD_INET_ADDRESS
- See Also:
- Constant Field Values
-
STD_INET_SOCKET_ADDRESS
public static final int STD_INET_SOCKET_ADDRESS
- See Also:
- Constant Field Values
-
STD_STRING_BUILDER
public static final int STD_STRING_BUILDER
- See Also:
- Constant Field Values
-
_kind
protected final int _kind
-
-
Method Detail
-
_deserialize
protected java.lang.Object _deserialize(java.lang.String value, DeserializationContext ctxt) throws java.io.IOException
- Specified by:
_deserialize
in classFromStringDeserializer<java.lang.Object>
- Throws:
java.io.IOException
-
_deserializeFromEmptyString
protected java.lang.Object _deserializeFromEmptyString() throws java.io.IOException
- Overrides:
_deserializeFromEmptyString
in classFromStringDeserializer<java.lang.Object>
- Throws:
java.io.IOException
-
_firstHyphenOrUnderscore
protected int _firstHyphenOrUnderscore(java.lang.String str)
-
-