Package proguard.io
Class JarWriter.MyMultiDigestOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- proguard.io.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.
-
-
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)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] bytes, int off, int len) throws java.io.IOException
- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
-