| Package | Description |
|---|---|
| com.owlike.genson |
This package contains Genson base classes, to start
with have a look at
Genson. |
| Modifier and Type | Method and Description |
|---|---|
static <T> GenericType<T> |
GenericType.of(Class<T> rawClass) |
static GenericType<Object> |
GenericType.of(Type type) |
| Modifier and Type | Method and Description |
|---|---|
<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) |
String |
Genson.serialize(Object object,
GenericType<?> type)
Serializes the object using the type of GenericType instead of using its runtime type.
|
<T> Genson.Builder |
Genson.Builder.withConverter(Converter<T> converter,
GenericType<? extends T> type)
Register converter by mapping it to the parameterized type of type argument.
|
<T> Genson.Builder |
Genson.Builder.withDeserializer(Deserializer<T> deserializer,
GenericType<? extends T> type) |
<T> Genson.Builder |
Genson.Builder.withSerializer(Serializer<T> serializer,
GenericType<? extends T> type) |
Copyright © 2014. All Rights Reserved.