T - Object type.public class SerializedConverter<T extends Serializable> extends Object implements FileObjectQueue.Converter<T>
| Constructor and Description |
|---|
SerializedConverter() |
| Modifier and Type | Method and Description |
|---|---|
T |
from(byte[] bytes)
Deserialize bytes to an object.
|
void |
toStream(T o,
OutputStream bytes)
Serializes o to bytes.
|
public T from(byte[] bytes) throws IOException
from in interface FileObjectQueue.Converter<T extends Serializable>IOExceptionpublic void toStream(T o, OutputStream bytes) throws IOException
toStream in interface FileObjectQueue.Converter<T extends Serializable>IOExceptionCopyright © 2015 Square, Inc.. All Rights Reserved.