public class WireTypeConverter extends Object
WireTypeConverterInternal to handle the actual conversion processes.| Constructor and Description |
|---|
WireTypeConverter()
Default constructor initializing the WireTypeConverter with a default
WireTypeConverterInternal instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(Class<?> newClass,
String oldTypeName)
Associates a given class type with an older type name as an alias.
|
CharSequence |
jsonToYaml(CharSequence json)
Converts the given JSON formatted input to its equivalent YAML representation.
|
CharSequence |
yamlToJson(CharSequence yaml)
Converts the given YAML formatted input to its equivalent JSON representation.
|
public WireTypeConverter()
WireTypeConverterInternal instance.public CharSequence jsonToYaml(CharSequence json)
json - The JSON input to be converted.public CharSequence yamlToJson(CharSequence yaml)
yaml - The YAML input to be converted.public void addAlias(Class<?> newClass, String oldTypeName)
newClass - The new class type.oldTypeName - The older or previous type name.Copyright © 2024. All rights reserved.