Class DeltaWindow.ZipStream

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

    static final class DeltaWindow.ZipStream
    extends java.io.OutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.zip.Deflater deflater  
      private int outPtr  
      private byte[] zbuf  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipStream​(java.util.zip.Deflater deflater, byte[] zbuf)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int finish()  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • deflater

        private final java.util.zip.Deflater deflater
      • zbuf

        private final byte[] zbuf
      • outPtr

        private int outPtr
    • Constructor Detail

      • ZipStream

        ZipStream​(java.util.zip.Deflater deflater,
                  byte[] zbuf)
    • Method Detail

      • finish

        int finish()
            throws java.io.IOException
        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
      • write

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