Package org.apache.xml.security.utils
Class DigesterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.apache.xml.security.utils.DigesterOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class DigesterOutputStream extends ByteArrayOutputStream
- Author:
- raul
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
-
Constructor Summary
Constructors Constructor Description DigesterOutputStream(MessageDigestAlgorithm mda)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getDigestValue()
void
write(byte[] arg0)
void
write(byte[] arg0, int arg1, int arg2)
void
write(int arg0)
-
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, writeBytes, writeTo
-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
-
-
-
Constructor Detail
-
DigesterOutputStream
public DigesterOutputStream(MessageDigestAlgorithm mda)
- Parameters:
mda
-
-
-
Method Detail
-
write
public void write(byte[] arg0)
- Overrides:
write
in classOutputStream
-
write
public void write(int arg0)
- Overrides:
write
in classByteArrayOutputStream
-
write
public void write(byte[] arg0, int arg1, int arg2)
- Overrides:
write
in classByteArrayOutputStream
-
getDigestValue
public byte[] getDigestValue()
- Returns:
- the digest value
-
-