Class DeflateWithPresetDictCompressionMode.DeflateWithPresetDictDecompressor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) byte[] compressed  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Decompressor clone()  
      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.
      private void doDecompress​(DataInput in, java.util.zip.Inflater decompressor, BytesRef bytes)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • compressed

        byte[] compressed
    • Constructor Detail

      • DeflateWithPresetDictDecompressor

        DeflateWithPresetDictDecompressor()
    • Method Detail

      • doDecompress

        private void doDecompress​(DataInput in,
                                  java.util.zip.Inflater decompressor,
                                  BytesRef bytes)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • decompress

        public void decompress​(DataInput in,
                               int originalLength,
                               int offset,
                               int length,
                               BytesRef bytes)
                        throws java.io.IOException
        Description copied from class: Decompressor
        Decompress bytes that were stored between offsets 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.
        Specified by:
        decompress in class Decompressor
        Parameters:
        in - the input that stores the compressed stream
        originalLength - the length of the original data (before compression)
        offset - bytes before this offset do not need to be decompressed
        length - bytes after offset+length do not need to be decompressed
        bytes - a BytesRef where to store the decompressed data
        Throws:
        java.io.IOException