Class ZipEntryOutputStream

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

    class ZipEntryOutputStream
    extends java.io.OutputStream
    • Field Detail

      • numberOfBytesWrittenForThisEntry

        private long numberOfBytesWrittenForThisEntry
      • outputStream

        private java.io.OutputStream outputStream
      • entryClosed

        private boolean entryClosed
    • Constructor Detail

      • ZipEntryOutputStream

        public ZipEntryOutputStream​(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
      • closeEntry

        public void closeEntry()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getNumberOfBytesWrittenForThisEntry

        public long getNumberOfBytesWrittenForThisEntry()
      • 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