Class PackParser.InflaterStream

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

    private class PackParser.InflaterStream
    extends java.io.InputStream
    • Constructor Summary

      Constructors 
      Constructor Description
      InflaterStream()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      (package private) void open​(PackParser.Source source, long inflatedSize)  
      int read()  
      int read​(byte[] dst, int pos, int cnt)  
      (package private) void release()  
      long skip​(long toSkip)  
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, read, reset
      • Methods inherited from class java.lang.Object

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

      • inf

        private final java.util.zip.Inflater inf
      • skipBuffer

        private final byte[] skipBuffer
      • expectedSize

        private long expectedSize
      • actualSize

        private long actualSize
      • p

        private int p
    • Constructor Detail

      • InflaterStream

        InflaterStream()
    • Method Detail

      • release

        void release()
      • open

        void open​(PackParser.Source source,
                  long inflatedSize)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • skip

        public long skip​(long toSkip)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] dst,
                        int pos,
                        int cnt)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException