<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,
GenericType<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,
GenericType<T> toType) |
Deserializes to an instance of T.
|
<T> T |
Genson.deserialize(String fromSource,
GenericType<T> toType,
Class<? extends BeanView<?>>... withViews) |
|
<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.
|
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,
GenericType<?> type,
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,
GenericType<?> type,
Writer writer) |
Serializes this object to the passed Writer, as Genson did not instantiate it, you are
responsible of calling close on it.
|
<T> GensonBuilder |
GensonBuilder.withConverter(Converter<T> converter,
GenericType<? extends T> type) |
Register converter by mapping it to the parameterized type of type argument.
|
<T> GensonBuilder |
GensonBuilder.withDeserializer(Deserializer<T> deserializer,
GenericType<? extends T> type) |
|
<T> GensonBuilder |
GensonBuilder.withSerializer(Serializer<T> serializer,
GenericType<? extends T> type) |
|