Module org.apache.lucene.core
Class CompressionMode.DeflateCompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Compressor
org.apache.lucene.codecs.compressing.CompressionMode.DeflateCompressor
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
CompressionMode
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) byte[](package private) final Deflater -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcompress(ByteBuffersDataInput buffersInput, DataOutput out) Compress bytes intoout.
-
Field Details
-
compressor
-
compressed
byte[] compressed -
closed
boolean closed
-
-
Constructor Details
-
DeflateCompressor
DeflateCompressor(int level)
-
-
Method Details
-
compress
Description copied from class:CompressorCompress 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.- Specified by:
compressin classCompressor- Throws:
IOException
-
close
- Throws:
IOException
-