Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.Compressor
-
- org.apache.lucene.codecs.lucene90.DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- DeflateWithPresetDictCompressionMode
private static class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor extends Compressor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
closed
(package private) byte[]
compressed
(package private) java.util.zip.Deflater
compressor
(package private) BugfixDeflater_JDK8252739
deflaterBugfix
-
Constructor Summary
Constructors Constructor Description DeflateWithPresetDictCompressor(int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
compress(byte[] bytes, int off, int len, DataOutput out)
Compress bytes intoout
.private void
doCompress(byte[] bytes, int off, int len, DataOutput out)
-
-
-
Field Detail
-
compressor
final java.util.zip.Deflater compressor
-
deflaterBugfix
final BugfixDeflater_JDK8252739 deflaterBugfix
-
compressed
byte[] compressed
-
closed
boolean closed
-
-
Method Detail
-
doCompress
private void doCompress(byte[] bytes, int off, int len, DataOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
compress
public void compress(byte[] bytes, int off, int len, DataOutput out) throws java.io.IOException
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:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-