java.lang.Object | ||||
java.io.OutputStream | Closeable Flushable | |||
java.io.FilterOutputStream | ||||
java.security.DigestOutputStream |
protected | MessageDigest | digest |
DigestOutputStream(OutputStream stream, MessageDigest digest) |
MessageDigest | getMessageDigest() | |||||
Returns the MessageDigest which the receiver uses when computing the hash. | ||||||
void | on(boolean on) | |||||
Enables or disables the digest function (default is on). | ||||||
void | setMessageDigest(MessageDigest digest) | |||||
Sets the MessageDigest which the receiver will use when computing the hash. | ||||||
String | toString() | |||||
Returns a string containing a concise, human-readable description of the receiver. | ||||||
void | write(int b) | |||||
Writes the specified byte oneByte to this
FilterOutputStream. |
||||||
void | write(byte[] b, int off, int len) | |||||
Writes count bytes from the byte array
buffer starting at offset to this
FilterOutputStream. |
on | boolean true if the digest should be computed, and false otherwise. |
---|
digest | MessageDigest the digest to use when computing the hash. |
---|
oneByte
to this
FilterOutputStream. Only the low order byte of oneByte
is
written. This implementation writes the byte to the target OutputStream.
b | the byte to be written |
---|
IOException |
---|
count
bytes
from the byte array
buffer
starting at offset
to this
FilterOutputStream. This implementation writes the buffer
to the target OutputStream.
b | the buffer to be written |
---|---|
off | offset in buffer to get bytes |
len | number of bytes in buffer to write |
IOException |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:56 |