| 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.jsr353 | |
| com.owlike.genson.reflect |
This package contains the core api providing databinding support for complex objects.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
Genson.deserialize(byte[] input,
Class<T> toType)
Deserializes the incoming json byte array into an instance of T.
|
<T> T |
Genson.deserialize(byte[] input,
GenericType<T> toType)
Deserializes the incoming json byte array into an instance of T.
|
<T> T |
Genson.deserialize(GenericType<T> type,
ObjectReader reader,
Context ctx) |
<T> T |
Genson.deserialize(GenericType<T> type,
Reader reader,
Class<? extends BeanView<?>>... withViews) |
<T> T |
Genson.deserialize(InputStream input,
Class<T> toType)
Deserializes the incoming json stream into an instance of T.
|
<T> T |
Genson.deserialize(InputStream input,
GenericType<T> toType)
Deserializes the incoming json stream into an instance of T.
|
T |
Deserializer.deserialize(ObjectReader reader,
Context ctx) |
T |
Converter.deserialize(ObjectReader reader,
Context ctx) |
<T> T |
Genson.deserialize(Reader reader,
Class<T> toType)
Deserializes the incoming json stream into an instance of T.
|
<T> T |
Genson.deserialize(Reader reader,
GenericType<T> toType)
Deserializes the incoming json stream into an instance of T.
|
<T> T |
Genson.deserialize(String fromSource,
Class<T> toClass)
Deserializes fromSource String into an instance of toClass.
|
<T> T |
Genson.deserialize(String fromSource,
Class<T> toType,
Class<? extends BeanView<?>>... withViews) |
<T> T |
Genson.deserialize(String fromSource,
GenericType<T> toType)
Deserializes to an instance of T.
|
<T> T |
Genson.deserialize(String fromSource,
GenericType<T> toType,
Class<? extends BeanView<?>>... withViews) |
String |
Genson.serialize(Object object)
Serializes the object into a json string.
|
String |
Genson.serialize(Object object,
Class<? extends BeanView<?>>... withViews)
Serializes the object using the specified BeanViews.
|
String |
Genson.serialize(Object object,
GenericType<?> type)
Serializes the object using the type of GenericType instead of using its runtime type.
|
void |
Genson.serialize(Object object,
ObjectWriter writer,
Class<? extends BeanView<?>>... withViews)
Serializes this object and writes its representation to writer.
|
void |
Genson.serialize(Object object,
OutputStream output)
Serializes this object to the passed OutputStream, as Genson did not instantiate it, you are
responsible of calling close on it.
|
void |
Genson.serialize(Object object,
Type type,
ObjectWriter writer,
Context ctx)
Serializes this object and writes its representation to writer.
|
void |
Genson.serialize(Object object,
Writer writer)
Serializes this object to the passed Writer, as Genson did not instantiate it, you are
responsible of calling close on it.
|
void |
Serializer.serialize(T object,
ObjectWriter writer,
Context ctx) |
void |
Converter.serialize(T object,
ObjectWriter writer,
Context ctx) |
byte[] |
Genson.serializeBytes(Object object)
Serializes this object to its json form in a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
NullConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
NullConverter.NullConverterWrapper.deserialize(ObjectReader reader,
Context ctx) |
T |
ClassMetadataConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
RuntimeTypeConverter.deserialize(ObjectReader reader,
Context ctx) |
T |
BeanViewConverter.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) |
String |
DefaultConverters.StringConverter.deserialize(ObjectReader reader,
Context ctx) |
Boolean |
DefaultConverters.BooleanConverter.deserialize(ObjectReader reader,
Context ctx) |
Integer |
DefaultConverters.IntegerConverter.deserialize(ObjectReader reader,
Context ctx) |
Number |
DefaultConverters.NumberConverter.deserialize(ObjectReader reader,
Context ctx) |
Boolean |
DefaultConverters.PrimitiveConverterFactory.booleanConverter.deserialize(ObjectReader reader,
Context ctx) |
Integer |
DefaultConverters.PrimitiveConverterFactory.intConverter.deserialize(ObjectReader reader,
Context ctx) |
Double |
DefaultConverters.PrimitiveConverterFactory.doubleConverter.deserialize(ObjectReader reader,
Context ctx) |
Long |
DefaultConverters.PrimitiveConverterFactory.longConverter.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) |
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) |
void |
DefaultConverters.BigDecimalConverter.serialize(BigDecimal object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.BigIntegerConverter.serialize(BigInteger object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.BooleanConverter.serialize(Boolean obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.PrimitiveConverterFactory.booleanConverter.serialize(Boolean obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.ByteArrayConverter.serialize(byte[] object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.CalendarConverter.serialize(Calendar object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.CollectionConverter.serialize(Collection<E> array,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.DateConverter.serialize(Date obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.DoubleConverter.serialize(Double obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.PrimitiveConverterFactory.doubleConverter.serialize(Double obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.FileConverter.serialize(File object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.IntegerConverter.serialize(Integer obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.PrimitiveConverterFactory.intConverter.serialize(Integer obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.LongConverter.serialize(Long obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.PrimitiveConverterFactory.longConverter.serialize(Long obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.MapConverter.serialize(Map<K,V> obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.ComplexMapConverter.serialize(Map<K,V> object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.NumberConverter.serialize(Number obj,
ObjectWriter writer,
Context ctx) |
void |
NullConverter.serialize(Object obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.ArrayConverter.serialize(Object array,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.StringConverter.serialize(String value,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.TimestampConverter.serialize(Timestamp object,
ObjectWriter writer,
Context ctx) |
void |
NullConverter.NullConverterWrapper.serialize(T obj,
ObjectWriter writer,
Context ctx) |
void |
ClassMetadataConverter.serialize(T obj,
ObjectWriter writer,
Context ctx) |
void |
RuntimeTypeConverter.serialize(T obj,
ObjectWriter writer,
Context ctx) |
void |
BeanViewConverter.serialize(T obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.EnumConverter.serialize(T obj,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.URIConverter.serialize(URI object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.URLConverter.serialize(URL object,
ObjectWriter writer,
Context ctx) |
void |
DefaultConverters.UUIDConverter.serialize(UUID object,
ObjectWriter writer,
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) |
void |
JSR353Bundle.JsonValueConverter.serialize(javax.json.JsonValue value,
ObjectWriter writer,
Context ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected TransformationException |
BeanCreator.couldNotCreate(Exception e) |
protected TransformationException |
PropertyMutator.couldNotDeserialize(Throwable e) |
protected TransformationException |
PropertyAccessor.couldNotSerialize(Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
BeanDescriptor._deserWithCtrArgs(ObjectReader reader,
Context ctx) |
abstract Object |
BeanCreator.create(Object... args) |
Object |
BeanCreator.ConstructorBeanCreator.create(Object... args) |
Object |
BeanCreator.MethodBeanCreator.create(Object... args) |
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) |
void |
PropertyAccessor.serialize(Object propertySource,
ObjectWriter writer,
Context ctx) |
void |
BeanDescriptor.serialize(T obj,
ObjectWriter writer,
Context ctx) |
Copyright © 2013. All Rights Reserved.