org.vafer.jdeb.utils
Class InformationOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.security.DigestOutputStream
org.vafer.jdeb.utils.InformationOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class InformationOutputStream
- extends DigestOutputStream
Convenience class to provide digest info and length of a stream.
ATTENTION: don't use outside of jdeb
- Author:
- Torsten Curdt
InformationOutputStream
public InformationOutputStream(OutputStream pStream,
MessageDigest pDigest)
getHexDigest
public String getHexDigest()
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class DigestOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write in class DigestOutputStream
- Throws:
IOException
getSize
public long getSize()
Copyright © 2012. All Rights Reserved.