public class TsonSerializerConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TsonSerializerConfig.TypeElementSignature |
| Constructor and Description |
|---|
TsonSerializerConfig() |
TsonSerializerConfig(TsonSerializerConfig other) |
| Modifier and Type | Method and Description |
|---|---|
TsonSerializerConfig |
copy() |
<T> TsonElementToObject<T> |
getElemToObj(TsonElement e,
Class<T> to) |
<T> TsonObjectToElement<T> |
getObjToElemConverter(Class<T> c) |
void |
registerDefaults() |
<T> void |
registerElemToObjConverter(TsonElementType type,
String name,
Class to,
TsonElementToObject<T> converter) |
<T> void |
registerObjToElemConverter(Class<T> type,
TsonObjectToElement<T> writer) |
void |
writeDefaultElement(Tson element,
Writer writer) |
public TsonSerializerConfig(TsonSerializerConfig other)
public TsonSerializerConfig()
public void registerDefaults()
public final <T> void registerElemToObjConverter(TsonElementType type, String name, Class to, TsonElementToObject<T> converter)
public final <T> void registerObjToElemConverter(Class<T> type, TsonObjectToElement<T> writer)
public <T> TsonObjectToElement<T> getObjToElemConverter(Class<T> c)
public void writeDefaultElement(Tson element, Writer writer) throws IOException
IOExceptionpublic <T> TsonElementToObject<T> getElemToObj(TsonElement e, Class<T> to)
public TsonSerializerConfig copy()
Copyright © 2024 vpc open source initiative. All rights reserved.