public abstract class Decompressor
extends java.lang.Object
implements java.lang.Cloneable
| Modifier | Constructor and Description |
|---|---|
protected |
Decompressor()
Sole constructor, typically called from sub-classes.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Decompressor |
clone() |
abstract void |
decompress(DataInput in,
int originalLength,
int offset,
int length,
BytesRef bytes)
Decompress bytes that were stored between offsets
offset and
offset+length in the original stream from the compressed
stream in to bytes. |
protected Decompressor()
public abstract void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws java.io.IOException
offset and
offset+length in the original stream from the compressed
stream in to bytes. After returning, the length
of bytes (bytes.length) must be equal to
length. Implementations of this method are free to resize
bytes depending on their needs.in - the input that stores the compressed streamoriginalLength - the length of the original data (before compression)offset - bytes before this offset do not need to be decompressedlength - bytes after offset+length do not need to be decompressedbytes - a BytesRef where to store the decompressed datajava.io.IOExceptionpublic abstract Decompressor clone()
clone in class java.lang.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.