org.mbari.siam.tests.linkBenchmark2.compression
Class ObjectGZipper

java.lang.Object
  extended by org.mbari.siam.tests.linkBenchmark2.compression.ObjectGZipper

public class ObjectGZipper
extends java.lang.Object

ObjectGZipper compresses an object, generating a byte[] array

Author:
Bob Herlien

Field Summary
protected  CountedByteArrayOutputStream _byteStream
           
 
Constructor Summary
ObjectGZipper()
           
 
Method Summary
 byte[] compress(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_byteStream

protected CountedByteArrayOutputStream _byteStream
Constructor Detail

ObjectGZipper

public ObjectGZipper()
Method Detail

compress

public byte[] compress(java.lang.Object obj)
                throws java.io.InvalidClassException,
                       java.io.NotSerializableException,
                       java.io.IOException
Throws:
java.io.InvalidClassException
java.io.NotSerializableException
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.