Home All Groups
lz4-java / net / jpountz / lz4 / LZ4FrameInputStream.html /
net.jpountz.lz4

Class LZ4FrameInputStream

  • java.lang.Object
    • java.io.InputStream
      • java.io.FilterInputStream
        • net.jpountz.lz4.LZ4FrameInputStream
  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class LZ4FrameInputStream
    extends java.io.FilterInputStream
    Implementation of the v1.5.1 LZ4 Frame format. This class is NOT thread safe.

    Not Supported:

    • Dependent blocks
    • Legacy streams

    Originally based on kafka's KafkaLZ4BlockInputStream.

    See Also:
    LZ4 Framing Format Spec 1.5.1
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      intavailable() 
      voidclose() 
      voidmark(int readlimit) 
      booleanmarkSupported() 
      intread() 
      intread(byte[] b, int off, int len) 
      voidreset() 
      longskip(long n) 
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.lang.Object

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

      • 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
      • skip

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

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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface  java.io.Closeable
        Specified by:
        close in interface  java.lang.AutoCloseable
        Overrides:
        close in class  java.io.FilterInputStream
        Throws:
        java.io.IOException
      • 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
      • markSupported

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