Class Compressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Compressor
-
public abstract class Compressor extends Object
A data compressor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Compressor()
Sole constructor, typically called from sub-classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
compress(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 IOException
Compress bytes intoout
. It it the responsibility of the compressor to add all necessary information so that aDecompressor
will know when to stop decompressing bytes from the stream.- Throws:
IOException
-
-