Package nl.tue.storage
Interface Deflater<T>
-
- All Known Subinterfaces:
HeadDeflater<H>
- All Known Implementing Classes:
AbstractCompressor,AbstractFixedLengthListCompressor,ByteListCompressor,CompressableCompressor,DijkstraTail,IntListCompressor,LongListCompressor,ShortListCompressor,StateCompressor
public interface Deflater<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeflate(T object, java.io.OutputStream stream)deflate the given object into the provided stream.intgetMaxByteCount()the method is called before each call to deflate.
-
-
-
Method Detail
-
deflate
void deflate(T object, java.io.OutputStream stream) throws java.io.IOException
deflate the given object into the provided stream. This method should NOT close the stream.- Parameters:
object-- Throws:
java.io.IOException
-
getMaxByteCount
int getMaxByteCount()
the method is called before each call to deflate. The call to deflate should not write more than the number of bytes returned by this method! It may write less. If a negative value is returned, then a resizeable buffer is used- Returns:
-
-