Class Compressor
- java.lang.Object
-
- org.apache.lucene.backward_codecs.compressing.Compressor
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public abstract class Compressor extends Object implements Closeable
A data compressor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompressor()Sole constructor, typically called from sub-classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidcompress(byte[] bytes, int off, int len, DataOutput out)Compress bytes intoout.
-
-
-
Method Detail
-
compress
public abstract void compress(byte[] bytes, int off, int len, DataOutput out) throws IOExceptionCompress bytes intoout. It is the responsibility of the compressor to add all necessary information so that aDecompressorwill know when to stop decompressing bytes from the stream.- Throws:
IOException
-
-