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.FilterOutputStreamThis 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 voidclose()voidwrite(byte[] bytes, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] bytes, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-