Class BlockLZ4CompressorInputStream

    • Constructor Detail

      • BlockLZ4CompressorInputStream

        public BlockLZ4CompressorInputStream​(java.io.InputStream is)
                                      throws java.io.IOException
        Creates a new LZ4 input stream.
        Parameters:
        is - An InputStream to read compressed data from
        Throws:
        java.io.IOException - if reading fails
    • Method Detail

      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • readSizes

        private void readSizes()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readSizeBytes

        private long readSizeBytes()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • initializeBackReference

        private boolean initializeBackReference()
                                         throws java.io.IOException
        Returns:
        false if there is no more back-reference - this means this is the last block of the stream.
        Throws:
        java.io.IOException