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