程序包 | 说明 |
---|---|
org.codehaus.jackson.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.std |
限定符和类型 | 类和说明 |
---|---|
class |
StdDeserializer.CalendarDeserializer
已过时。
Since 1.9 use
CalendarDeserializer instead. |
class |
StdDeserializer.ClassDeserializer
已过时。
Since 1.9 use
ClassDeserializer instead. |
static class |
StdDeserializer.StringDeserializer
已过时。
Since 1.9 use
StringDeserializer instead. |
限定符和类型 | 类和说明 |
---|---|
class |
CalendarDeserializer |
class |
ClassDeserializer |
class |
CollectionDeserializer
Basic serializer that can take JSON "Array" structure and
construct a
Collection instance, with typed contents. |
class |
MapDeserializer
Basic serializer that can take Json "Object" structure and
construct a
Map instance, with typed contents. |
class |
ObjectArrayDeserializer
Basic serializer that can serialize non-primitive arrays.
|
static class |
StdDeserializer.BigDecimalDeserializer |
static class |
StdDeserializer.BigIntegerDeserializer
This is bit trickier to implement efficiently, while avoiding
overflow problems.
|
static class |
StdDeserializer.BooleanDeserializer |
static class |
StdDeserializer.ByteDeserializer |
static class |
StdDeserializer.CharacterDeserializer |
static class |
StdDeserializer.DoubleDeserializer |
static class |
StdDeserializer.FloatDeserializer |
static class |
StdDeserializer.IntegerDeserializer |
static class |
StdDeserializer.LongDeserializer |
static class |
StdDeserializer.NumberDeserializer
For type
Number.class , we can just rely on type
mappings that plain JsonParser.getNumberValue() returns. |
static class |
StdDeserializer.ShortDeserializer |
class |
StringCollectionDeserializer |
class |
StringDeserializer |
class |
TokenBufferDeserializer
We also want to directly support deserialization of
TokenBuffer . |
class |
UntypedObjectDeserializer
Deserializer implementation that is used if it is necessary to bind content of
"unknown" type; something declared as basic
Object
(either explicitly, or due to type erasure). |
限定符和类型 | 类和说明 |
---|---|
class |
EnumSerializer
已过时。
Since 1.9 use
EnumSerializer |
class |
MapSerializer
已过时。
Since 1.9 use
MapSerializer |
static class |
StdSerializers.BooleanSerializer
Serializer used for primitive boolean, as well as java.util.Boolean
wrapper type.
|
static class |
StdSerializers.CalendarSerializer
已过时。
Since 1.9, use
DateSerializer instead |
static class |
StdSerializers.DoubleSerializer
This is the special serializer for regular
Double s
(and primitive doubles)
Since this is one of "native" types, no type information is ever
included on serialization (unlike for most scalar types as of 1.5) |
static class |
StdSerializers.FloatSerializer |
static class |
StdSerializers.IntegerSerializer
This is the special serializer for regular
Integer s
(and primitive ints)
Since this is one of "native" types, no type information is ever
included on serialization (unlike for most scalar types as of 1.5) |
static class |
StdSerializers.IntLikeSerializer
Similar to
StdSerializers.IntegerSerializer , but will not cast to Integer:
instead, cast is to Number , and conversion is
by calling Number.intValue() . |
static class |
StdSerializers.LongSerializer |
static class |
StdSerializers.NumberSerializer
As a fallback, we may need to use this serializer for other
types of
Number s (custom types). |
static class |
StdSerializers.SerializableSerializer
已过时。
Since 1.9, use
DateSerializer instead |
static class |
StdSerializers.SerializableWithTypeSerializer
已过时。
Since 1.9, use
DateSerializer instead |
static class |
StdSerializers.SqlDateSerializer
Compared to regular
StdSerializers.UtilDateSerializer , we do use String
representation here. |
static class |
StdSerializers.SqlTimeSerializer |
static class |
StdSerializers.StringSerializer
已过时。
Since 1.9, use
StringSerializer instead |
static class |
StdSerializers.UtilDateSerializer
已过时。
Since 1.9, use
DateSerializer instead |
class |
ToStringSerializer
已过时。
Since 1.9 use
ToStringSerializer |
限定符和类型 | 类和说明 |
---|---|
class |
CalendarSerializer
Standard serializer for
Calendar . |
class |
DateSerializer
For efficiency, we will serialize Dates as longs, instead of
potentially more readable Strings.
|
class |
EnumMapSerializer
Specialized serializer for
EnumMap s. |
class |
EnumSerializer
Standard serializer used for
Enum types. |
class |
IndexedStringListSerializer
Efficient implementation for serializing
List s that contains Strings and are random-accessible. |
class |
IterableSerializer |
class |
JsonValueSerializer
Serializer class that can serialize Object that have a
JsonValue annotation to
indicate that serialization should be done by calling the method
annotated, and serializing result it returns. |
class |
MapSerializer
Standard serializer implementation for serializing {link java.util.Map} types.
|
class |
NullSerializer
This is a simple dummy serializer that will just output literal
JSON null value whenever serialization is requested.
|
class |
ObjectArraySerializer
Generic serializer for Object arrays (
Object[] ). |
class |
RawSerializer<T>
This is a simple dummy serializer that will just output raw values by calling toString()
on value to serialize.
|
class |
SerializableSerializer
Generic handler for types that implement
JsonSerializable . |
class |
SerializableWithTypeSerializer
Generic handler for types that implement
JsonSerializableWithType . |
static class |
StdArraySerializers.BooleanArraySerializer |
static class |
StdArraySerializers.ByteArraySerializer
Unlike other integral number array serializers, we do not just print out byte values
as numbers.
|
static class |
StdArraySerializers.CharArraySerializer
Character arrays are different from other integral number arrays in that
they are most likely to be textual data, and should be written as
Strings, not arrays of entries.
|
static class |
StdArraySerializers.DoubleArraySerializer |
static class |
StdArraySerializers.FloatArraySerializer |
static class |
StdArraySerializers.IntArraySerializer |
static class |
StdArraySerializers.LongArraySerializer |
static class |
StdArraySerializers.ShortArraySerializer |
static class |
StdArraySerializers.StringArraySerializer
Standard serializer used for
String[] values. |
static class |
StdContainerSerializers.IndexedListSerializer
This is an optimized serializer for Lists that can be efficiently
traversed by index (as opposed to others, such as
LinkedList
that can not}. |
static class |
StdContainerSerializers.IteratorSerializer |
class |
StringCollectionSerializer
Efficient implement for serializing
Collection s that contain Strings. |
class |
StringSerializer
This is the special serializer for regular
String s. |
class |
TokenBufferSerializer
We also want to directly support serialization of
TokenBuffer ;
and since it is part of core package, it can not implement
JsonSerializable
(which is only included in the mapper package) |
class |
ToStringSerializer
Simple general purpose serializer, useful for any
type for which
Object.toString() returns the desired JSON
value. |