public class QiSerializer extends Object
By default, there are ArrayConverter
, ListConverter
, MapConverter
and
StructConverter
.
Modifier and Type | Class and Description |
---|---|
static interface |
QiSerializer.Converter
Converter interface which defines the characteristics of a converter.
|
Constructor and Description |
---|
QiSerializer() |
QiSerializer(List<QiSerializer.Converter> converters) |
Modifier and Type | Method and Description |
---|---|
void |
addConverter(QiSerializer.Converter converter) |
static List<QiSerializer.Converter> |
createDefaultConverters() |
Object[] |
deserialize(Object[] sources,
Type[] sourceTypes) |
Object |
deserialize(Object object,
Type targetType) |
List<QiSerializer.Converter> |
getConverters() |
static QiSerializer |
getDefault() |
Object |
serialize(Object object) |
public QiSerializer(List<QiSerializer.Converter> converters)
public QiSerializer()
public static QiSerializer getDefault()
public void addConverter(QiSerializer.Converter converter)
public List<QiSerializer.Converter> getConverters()
public Object deserialize(Object object, Type targetType) throws QiConversionException
QiConversionException
public Object[] deserialize(Object[] sources, Type[] sourceTypes) throws QiConversionException
QiConversionException
public Object serialize(Object object) throws QiConversionException
QiConversionException
public static List<QiSerializer.Converter> createDefaultConverters()
Copyright © 2020. All rights reserved.