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) |
<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.
|
<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) |
Copyright © 2019. All rights reserved.