APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xml.internal.security.utils

public Class DigesterOutputStream

extends ByteArrayOutputStream
Class Inheritance
Imports
java.io.ByteArrayOutputStream, com.sun.org.apache.xml.internal.security.algorithms.MessageDigestAlgorithm

Field Summary

Modifier and TypeField and Description
private static final Logger
pack-priv final MessageDigestAlgorithm
Inherited from java.io.ByteArrayOutputStream:
bufcount

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
getDigestValue()

Returns: the digest value

public void
write(byte[] arg0)

Overrides java.io.OutputStream.write.

Writes b.length bytes from the specified byte array to this output stream.

public synchronized void
write(int arg0)

Overrides java.io.ByteArrayOutputStream.write.

Writes the specified byte to this ByteArrayOutputStream.

public void
write(byte[] arg0, int arg1, int arg2)

Overrides java.io.ByteArrayOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this ByteArrayOutputStream.

Inherited from java.io.ByteArrayOutputStream:
closeresetsizetoByteArraytoStringtoStringtoStringtoStringwriteByteswriteTo

Field Detail

LOGback to summary
private static final Logger LOG
mdaback to summary
pack-priv final MessageDigestAlgorithm mda

Constructor Detail

DigesterOutputStreamback to summary
public DigesterOutputStream(MessageDigestAlgorithm mda)

Method Detail

getDigestValueback to summary
public byte[] getDigestValue()
Returns:byte[]

the digest value

writeback to summary
public void write(byte[] arg0)

Overrides java.io.OutputStream.write.

Doc from java.io.OutputStream.write.

Writes b.length bytes from the specified byte array to this output stream. The general contract for write(b) is that it should have exactly the same effect as the call write(b, 0, b.length).

Annotations
@Override
writeback to summary
public synchronized void write(int arg0)

Overrides java.io.ByteArrayOutputStream.write.

Doc from java.io.ByteArrayOutputStream.write.

Writes the specified byte to this ByteArrayOutputStream.

Annotations
@Override
writeback to summary
public void write(byte[] arg0, int arg1, int arg2)

Overrides java.io.ByteArrayOutputStream.write.

Doc from java.io.ByteArrayOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this ByteArrayOutputStream.

Annotations
@Override