Class LZ4BlockInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class LZ4BlockInputStream
    extends java.io.FilterInputStream
    InputStream implementation to decode data written with LZ4BlockOutputStream. This class is not thread-safe and does not support mark(int)/reset().
    See Also:
    LZ4BlockOutputStream
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      LZ4BlockInputStream​(java.io.InputStream in)
      Creates a new LZ4 input stream to read from the specified underlying InputStream, using XXHash32 for checksuming.
      LZ4BlockInputStream​(java.io.InputStream in, boolean stopOnEmptyBlock)
      Creates a new LZ4 input stream to read from the specified underlying InputStream, using XXHash32 for checksuming.
      LZ4BlockInputStream​(java.io.InputStream in, LZ4FastDecompressor decompressor)
      Creates a new LZ4 input stream to read from the specified underlying InputStream, using XXHash32 for checksuming.
      LZ4BlockInputStream​(java.io.InputStream in, LZ4FastDecompressor decompressor, java.util.zip.Checksum checksum)
      Creates a new LZ4 input stream to read from the specified underlying InputStream.
      LZ4BlockInputStream​(java.io.InputStream in, LZ4FastDecompressor decompressor, java.util.zip.Checksum checksum, boolean stopOnEmptyBlock)
      Creates a new LZ4 input stream to read from the specified underlying InputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      void mark​(int readlimit)  
      boolean markSupported()  
      int read()  
      int read​(byte[] b)  
      int read​(byte[] b, int off, int len)  
      void reset()  
      long skip​(long n)  
      java.lang.String toString()  
      • Methods inherited from class java.io.FilterInputStream

        close
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • read

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

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.FilterInputStream
      • mark

        public void mark​(int readlimit)
        Overrides:
        mark in class java.io.FilterInputStream
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object