T - the argument's type of method serializepublic class DefaultSerializer<T> extends Object implements Serializer<T>
ObjectOutputStream.Serializer| Constructor and Description |
|---|
DefaultSerializer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
serialize(T object)
Serializes an object to byte array, or throw an exception if unable to do so.
|
public byte[] serialize(T object) throws IOException
Serializerserialize in interface Serializer<T>object - object for serializationIOExceptionCopyright © 2018 Infobip Ltd.. All rights reserved.