public abstract class BinarySerializer extends SerializerSkeleton
| Constructor and Description |
|---|
BinarySerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(String o,
Class<T> targetType) |
boolean |
isGzip() |
protected abstract Object |
read(InputStream is) |
String |
serialize(Object o) |
void |
setGzip(boolean gzip) |
protected abstract void |
write(OutputStream out,
Object o) |
start, stoppublic void setGzip(boolean gzip)
public boolean isGzip()
public final String serialize(Object o)
serialize in interface Serializerserialize in class SerializerSkeletonpublic final <T> T deserialize(String o, Class<T> targetType) throws SerializerException
SerializerExceptionprotected abstract void write(OutputStream out, Object o) throws Exception
Exceptionprotected abstract Object read(InputStream is) throws Exception
ExceptionCopyright © 2011-2012 Ovea. All Rights Reserved.