Class ZipEntryInputStream

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

    class ZipEntryInputStream
    extends java.io.InputStream
    • Field Detail

      • MAX_RAW_READ_FULLY_RETRY_ATTEMPTS

        private static final int MAX_RAW_READ_FULLY_RETRY_ATTEMPTS
        See Also:
        Constant Field Values
      • inputStream

        private java.io.InputStream inputStream
      • numberOfBytesRead

        private long numberOfBytesRead
      • singleByteArray

        private byte[] singleByteArray
      • compressedSize

        private long compressedSize
    • Constructor Detail

      • ZipEntryInputStream

        public ZipEntryInputStream​(java.io.InputStream inputStream,
                                   long compressedSize)
    • Method Detail

      • 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[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • 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
      • readRawFully

        public int readRawFully​(byte[] b)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readUntilBufferIsFull

        private int readUntilBufferIsFull​(byte[] b,
                                          int readLength)
                                   throws java.io.IOException
        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
      • getNumberOfBytesRead

        public long getNumberOfBytesRead()