org.apache.xml.security.stax.impl.util
Class DigestOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.xml.security.stax.impl.util.DigestOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class DigestOutputStream
extends OutputStream

A Streaming based message-digest implementation

Version:
$Revision: 1459726 $ $Date: 2013-03-22 11:25:01 +0000 (Fri, 22 Mar 2013) $
Author:
$Author: coheigea $

Field Summary
protected static boolean isDebugEnabled
           
protected static org.slf4j.Logger log
           
 
Constructor Summary
DigestOutputStream(MessageDigest messageDigest)
           
 
Method Summary
 byte[] getDigestValue()
           
 void write(byte[] arg0)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 void write(int arg0)
           
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final transient org.slf4j.Logger log

isDebugEnabled

protected static final transient boolean isDebugEnabled
Constructor Detail

DigestOutputStream

public DigestOutputStream(MessageDigest messageDigest)
Method Detail

write

public void write(byte[] arg0)
Overrides:
write in class OutputStream

write

public void write(int arg0)
Specified by:
write in class OutputStream

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
Overrides:
write in class OutputStream

getDigestValue

public byte[] getDigestValue()


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.