@HandleClassMetadata public static class DefaultConverters.ByteArrayAsIntArrayConverter extends Object implements Converter<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static DefaultConverters.ByteArrayAsIntArrayConverter |
instance |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deserialize(ObjectReader reader,
Context ctx) |
void |
serialize(byte[] object,
ObjectWriter writer,
Context ctx) |
public static final DefaultConverters.ByteArrayAsIntArrayConverter instance
public void serialize(byte[] object,
ObjectWriter writer,
Context ctx)
throws Exception
serialize in interface Converter<byte[]>serialize in interface Serializer<byte[]>object - 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.JsonBindingExceptionJsonStreamExceptionExceptionpublic byte[] deserialize(ObjectReader reader, Context ctx) throws Exception
deserialize in interface Converter<byte[]>deserialize in interface Deserializer<byte[]>reader - used to read data from.ctx - the current context.JsonBindingExceptionJsonStreamExceptionExceptionCopyright © 2019. All rights reserved.