Class CountingOutputStream

    • Field Detail

      • outputStream

        private java.io.OutputStream outputStream
      • numberOfBytesWritten

        private long numberOfBytesWritten
    • Constructor Detail

      • CountingOutputStream

        public CountingOutputStream​(java.io.OutputStream outputStream)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • getOffsetForNextEntry

        public long getOffsetForNextEntry()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getSplitLength

        public long getSplitLength()
      • isSplitZipFile

        public boolean isSplitZipFile()
      • getNumberOfBytesWritten

        public long getNumberOfBytesWritten()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • checkBuffSizeAndStartNextSplitFile

        public boolean checkBuffSizeAndStartNextSplitFile​(int bufferSize)
                                                   throws ZipException
        Throws:
        ZipException
      • 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.OutputStream
        Throws:
        java.io.IOException