public class TextFormatConfigSerializer extends Object implements TypeSerializer<TextFormat>
TypeSerializer to allow serialization of
TextFormats directly to a configuration file.| Constructor and Description |
|---|
TextFormatConfigSerializer() |
| Modifier and Type | Method and Description |
|---|---|
TextFormat |
deserialize(TypeToken<?> type,
ConfigurationNode value) |
void |
serialize(TypeToken<?> type,
TextFormat obj,
ConfigurationNode value) |
public TextFormat deserialize(TypeToken<?> type, ConfigurationNode value) throws ObjectMappingException
deserialize in interface TypeSerializer<TextFormat>ObjectMappingExceptionpublic void serialize(TypeToken<?> type, TextFormat obj, ConfigurationNode value) throws ObjectMappingException
serialize in interface TypeSerializer<TextFormat>ObjectMappingException