Package | Description |
---|---|
com.owlike.genson |
This package contains Genson base classes, to start
with have a look at
Genson . |
com.owlike.genson.convert |
This package provides some default
Converter implementations and
the chained factory and converter decorator mechanisms. |
com.owlike.genson.ext.guava | |
com.owlike.genson.ext.jodatime | |
com.owlike.genson.ext.jsr353 | |
com.owlike.genson.reflect |
This package contains the core api providing databinding support for complex objects.
|
com.owlike.genson.stream |
This package provides the streaming api used to read and write to streams.
|
Modifier and Type | Method and Description |
---|---|
ObjectReader |
Genson.createReader(byte[] in) |
ObjectReader |
Genson.createReader(InputStream is)
Creates a new ObjectReader with this Genson instance configuration and tries to detect the encoding
from the stream content.
|
ObjectReader |
Genson.createReader(InputStream is,
Charset charset)
Creates a new ObjectReader with this Genson instance configuration.
|
ObjectReader |
Genson.createReader(Reader reader)
Creates a new ObjectReader with this Genson instance configuration.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Genson.deserialize(GenericType<T> type,
ObjectReader reader,
Context ctx) |
T |
Deserializer.deserialize(ObjectReader reader,
Context ctx) |
T |
Converter.deserialize(ObjectReader reader,
Context ctx) |
<T> T |
Genson.deserializeInto(ObjectReader reader,
T object,
Context ctx)
Deserializes the stream in the existing object.
|
<T> Iterator<T> |
Genson.deserializeValues(ObjectReader reader,
GenericType<T> type)
This can be used to deserialize in an efficient streaming fashion a sequence of objects.
|
Modifier and Type | Method and Description |
---|---|
T |
RuntimeTypeConverter.deserialize(ObjectReader reader,
Context ctx) |
Collection<E> |
DefaultConverters.CollectionConverter.deserialize(ObjectReader reader,
Context ctx) |
Object |
DefaultConverters.ArrayConverter.deserialize(ObjectReader reader,
Context ctx) |
byte[] |
DefaultConverters.ByteArrayConverter.deserialize(ObjectReader reader,
Context ctx) |
byte[] |
DefaultConverters.ByteArrayAsIntArrayConverter.deserialize(ObjectReader reader,
Context ctx) |
String |
DefaultConverters.StringConverter.deserialize(ObjectReader reader,
Context ctx) |
Boolean |
DefaultConverters.BooleanConverter.deserialize(ObjectReader reader,
Context ctx) |
Integer |
DefaultConverters.IntegerConverter.deserialize(ObjectReader reader,
Context ctx) |
Long |
DefaultConverters.LongConverter.deserialize(ObjectReader reader,
Context ctx) |
Short |
DefaultConverters.ShortConverter.deserialize(ObjectReader reader,
Context ctx) |
Double |
DefaultConverters.DoubleConverter.deserialize(ObjectReader reader,
Context ctx) |
Float |
DefaultConverters.FloatConverter.deserialize(ObjectReader reader,
Context ctx) |
Number |
DefaultConverters.NumberConverter.deserialize(ObjectReader reader,
Context ctx) |
Character |
DefaultConverters.CharConverter.deserialize(ObjectReader reader,
Context ctx) |
Byte |
DefaultConverters.ByteConverter.deserialize(ObjectReader reader,
Context ctx) |
Map<K,V> |
DefaultConverters.MapConverter.deserialize(ObjectReader reader,
Context ctx) |
Map<K,V> |
DefaultConverters.ComplexMapConverter.deserialize(ObjectReader reader,
Context ctx) |
Date |
DefaultConverters.DateConverter.deserialize(ObjectReader reader,
Context ctx) |
Object |
DefaultConverters.UntypedConverterFactory.UntypedConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
DefaultConverters.EnumConverter.deserialize(ObjectReader reader,
Context ctx) |
URL |
DefaultConverters.URLConverter.deserialize(ObjectReader reader,
Context ctx) |
URI |
DefaultConverters.URIConverter.deserialize(ObjectReader reader,
Context ctx) |
BigDecimal |
DefaultConverters.BigDecimalConverter.deserialize(ObjectReader reader,
Context ctx) |
BigInteger |
DefaultConverters.BigIntegerConverter.deserialize(ObjectReader reader,
Context ctx) |
Timestamp |
DefaultConverters.TimestampConverter.deserialize(ObjectReader reader,
Context ctx) |
UUID |
DefaultConverters.UUIDConverter.deserialize(ObjectReader reader,
Context ctx) |
Calendar |
DefaultConverters.CalendarConverter.deserialize(ObjectReader reader,
Context ctx) |
File |
DefaultConverters.FileConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
DefaultConverters.WrappedRootValueConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
ClassMetadataConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
BeanViewConverter.deserialize(ObjectReader reader,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<T> |
OptionalConverter.deserialize(ObjectReader reader,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.Period |
PeriodConverter.deserialize(ObjectReader reader,
Context ctx) |
org.joda.time.Interval |
IntervalConverter.deserialize(ObjectReader reader,
Context ctx) |
org.joda.time.Duration |
DurationConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
BaseReadableInstantConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
BaseLocalConverter.deserialize(ObjectReader reader,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
javax.json.JsonValue |
JSR353Bundle.JsonValueConverter.deserArray(ObjectReader reader,
Context ctx) |
javax.json.JsonValue |
JSR353Bundle.JsonValueConverter.deserialize(ObjectReader reader,
Context ctx) |
javax.json.JsonValue |
JSR353Bundle.JsonValueConverter.deserObject(ObjectReader reader,
Context ctx) |
Constructor and Description |
---|
GensonJsonParser(ObjectReader reader) |
Modifier and Type | Method and Description |
---|---|
protected T |
BeanDescriptor._deserWithCtrArgs(ObjectReader reader,
Context ctx) |
void |
PropertyMutator.deserialize(Object into,
ObjectReader reader,
Context ctx) |
Object |
PropertyMutator.deserialize(ObjectReader reader,
Context ctx) |
T |
BeanDescriptor.deserialize(ObjectReader reader,
Context ctx) |
void |
BeanDescriptor.deserialize(T into,
ObjectReader reader,
Context ctx) |
Modifier and Type | Class and Description |
---|---|
class |
JsonReader |
Modifier and Type | Method and Description |
---|---|
ObjectReader |
ObjectReader.beginArray()
Starts reading an array.
|
ObjectReader |
JsonReader.beginArray() |
ObjectReader |
ObjectReader.beginObject()
Starts reading a object.
|
ObjectReader |
JsonReader.beginObject() |
ObjectReader |
ObjectReader.endArray()
Ends the array.
|
ObjectReader |
JsonReader.endArray() |
ObjectReader |
ObjectReader.endObject()
Ends the object.
|
ObjectReader |
JsonReader.endObject() |
ObjectReader |
ObjectReader.nextObjectMetadata()
Will read nexts object metadata.
|
ObjectReader |
JsonReader.nextObjectMetadata() |
ObjectReader |
ObjectReader.skipValue()
If the value is of complex type it will skip its content.
|
ObjectReader |
JsonReader.skipValue() |
Copyright © 2019. All rights reserved.