@HandleClassMetadata @HandleBeanView public static final class DefaultConverters.StringConverter extends Object implements Converter<String>
| Modifier and Type | Field and Description |
|---|---|
static DefaultConverters.StringConverter |
instance |
| Modifier and Type | Method and Description |
|---|---|
String |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(String value,
ObjectWriter writer,
Context ctx) |
public static final DefaultConverters.StringConverter instance
public void serialize(String value, ObjectWriter writer, Context ctx)
serialize in interface Converter<String>serialize in interface Serializer<String>value - we want to serialize. The object is of type T or a subclass (if this serializer
has been registered for subclasses).writer - to use to write data to the output stream.ctx - the current context.public String deserialize(ObjectReader reader, Context ctx)
deserialize in interface Converter<String>deserialize in interface Deserializer<String>reader - used to read data from.ctx - the current context.Copyright © 2019. All rights reserved.