org.prevayler.foundation.serialization
Class GZIPSerializer
java.lang.Object
org.prevayler.foundation.serialization.GZIPSerializer
- All Implemented Interfaces:
- Serializer
public class GZIPSerializer
- extends Object
- implements Serializer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GZIPSerializer
public GZIPSerializer(Serializer delegate)
GZIPSerializer
public GZIPSerializer(Serializer delegate,
int gzipBufferSize)
writeObject
public void writeObject(OutputStream stream,
Object object)
throws Exception
- Description copied from interface:
Serializer
- Write an object to a stream. An implementation must ensure that the object is written
completely before returning. An implementation is free to flush or close the given stream
as it sees fit, but is not required to do either. An implementation can expect that the
stream is already buffered, so additional buffering is not required for performance.
- Specified by:
writeObject
in interface Serializer
- Throws:
Exception
readObject
public Object readObject(InputStream stream)
throws Exception
- Description copied from interface:
Serializer
- Read an object from a stream. An implementation is free to close the given stream
as it sees fit, but is not required to do so. An implementation can expect that the
stream is already buffered, so additional buffering is not required for performance.
- Specified by:
readObject
in interface Serializer
- Throws:
Exception
Copyright © 2001-2013. All Rights Reserved.