Package proguard.io

Class JarWriter.MyMultiDigestOutputStream

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

    protected static class JarWriter.MyMultiDigestOutputStream
    extends java.io.FilterOutputStream
    This FilterOutputStream automatically appends a file digest entry to a given manifest writer, when the stream is closed.
    • Field Summary

      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      MyMultiDigestOutputStream​(java.lang.String entryName, java.security.MessageDigest[] manifestDigests, java.io.PrintWriter manifestWriter, java.io.OutputStream outputStream)  
    • Method Summary

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

        flush, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • MyMultiDigestOutputStream

        public MyMultiDigestOutputStream​(java.lang.String entryName,
                                         java.security.MessageDigest[] manifestDigests,
                                         java.io.PrintWriter manifestWriter,
                                         java.io.OutputStream outputStream)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] bytes,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        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.FilterOutputStream
        Throws:
        java.io.IOException