Class Compressor
java.lang.Object
org.apache.lucene.backward_codecs.compressing.Compressor
- All Implemented Interfaces:
Closeable,AutoCloseable
A data compressor.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSole constructor, typically called from sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcompress(byte[] bytes, int off, int len, DataOutput out) Compress bytes intoout.
-
Constructor Details
-
Compressor
protected Compressor()Sole constructor, typically called from sub-classes.
-
-
Method Details
-
compress
Compress 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
-