public class WireTypeConverter extends Object
WireTypeConverterInternal to handle the actual conversion processes.| Constructor and Description |
|---|
WireTypeConverter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(Class<?> newClass,
String oldTypeName)
Registers a class alias that will be used during conversions.
|
CharSequence |
jsonToYaml(CharSequence json)
Converts the given JSON formatted input to its YAML representation.
|
CharSequence |
yamlToJson(CharSequence yaml)
Converts the given YAML formatted input to its JSON representation.
|
public WireTypeConverter()
WireTypeConverterInternal.public CharSequence jsonToYaml(CharSequence json)
json - the JSON formatted CharSequence to be convertedCharSequence containing the YAML representation of the input JSONpublic CharSequence yamlToJson(CharSequence yaml)
yaml - the YAML formatted CharSequence to be convertedCharSequence containing the JSON representation of the input YAMLpublic void addAlias(Class<?> newClass, String oldTypeName)
oldTypeName seen in the input to be mapped to
newClass during deserialisation by the internal wires.newClass - the target Class objectoldTypeName - the alternative or old type name string that should map to newClassCopyright © 2026 Chronicle Software Ltd. All rights reserved.