Module org.apache.lucene.core
Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
java.lang.Object
org.apache.lucene.codecs.compressing.Compressor
org.apache.lucene.codecs.lucene90.DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
DeflateWithPresetDictCompressionMode
private static class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictCompressor
extends Compressor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) byte[]
(package private) boolean
(package private) byte[]
(package private) final Deflater
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
compress
(ByteBuffersDataInput buffersInput, DataOutput out) Compress bytes intoout
.private void
doCompress
(byte[] bytes, int off, int len, DataOutput out)
-
Field Details
-
compressor
-
compressed
byte[] compressed -
closed
boolean closed -
buffer
byte[] buffer
-
-
Constructor Details
-
DeflateWithPresetDictCompressor
DeflateWithPresetDictCompressor(int level)
-
-
Method Details
-
doCompress
- Throws:
IOException
-
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
-