public class ObjectSerializationHelper<T> extends Object
| Constructor and Description |
|---|
ObjectSerializationHelper() |
| Modifier and Type | Method and Description |
|---|---|
T |
readObject(InputStream is) |
T |
readObjectCompressed(InputStream is) |
void |
writeObject(T obj,
OutputStream os) |
void |
writeObjectCompressed(T obj,
OutputStream os) |
public void writeObject(T obj, OutputStream os) throws IOException
IOExceptionpublic T readObject(InputStream is) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void writeObjectCompressed(T obj, OutputStream os) throws IOException
IOExceptionpublic T readObjectCompressed(InputStream is) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2017. All rights reserved.