Class CompressionMode.DeflateCompressor
java.lang.Object
org.apache.lucene.backward_codecs.compressing.Compressor
org.apache.lucene.backward_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 TypeMethodDescriptionvoid
close()
void
compress
(byte[] bytes, int off, int len, 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:Compressor
Compress bytes intoout
. It is the responsibility of the compressor to add all necessary information so that aDecompressor
will know when to stop decompressing bytes from the stream.- Specified by:
compress
in classCompressor
- Throws:
IOException
-
close
- Throws:
IOException
-