java.lang.Object | |||
↳ | java.io.OutputStream | ||
↳ | java.io.FilterOutputStream | ||
↳ | java.security.DigestOutputStream |
DigestOutputStream
is a FilterOutputStream
which maintains an
associated message digest.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
digest | The message digest for this stream. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterOutputStream
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of this
DigestOutputStream , using the
given stream and the digest .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the message digest for this stream.
| |||||||||||
Enables or disables the digest function (default is on).
| |||||||||||
Sets the message digest which this stream will use.
| |||||||||||
Returns a string containing a concise, human-readable description of this
DigestOutputStream including the digest.
| |||||||||||
Writes
len bytes into the stream, starting from the specified
offset.
| |||||||||||
Writes the specified
int to the stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterOutputStream
| |||||||||||
From class
java.io.OutputStream
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
java.io.Flushable
| |||||||||||
From interface
java.lang.AutoCloseable
|
Constructs a new instance of this DigestOutputStream
, using the
given stream
and the digest
.
stream | the output stream. |
---|---|
digest | the message digest. |
Returns the message digest for this stream.
Enables or disables the digest function (default is on).
on | true if the digest should be computed, false
otherwise. |
---|
Sets the message digest which this stream will use.
digest | the message digest which this stream will use. |
---|
Returns a string containing a concise, human-readable description of this
DigestOutputStream
including the digest.
DigestOutputStream
.
Writes len
bytes into the stream, starting from the specified
offset. Updates the digest if this function is on(boolean)
.
b | the buffer to write to. |
---|---|
off | the index of the first byte in b to write. |
len | the number of bytes in b to write. |
IOException | if writing to the stream causes an IOException .
|
---|
Writes the specified int
to the stream. Updates the digest if
this function is on(boolean)
.
b | the byte to be written. |
---|
IOException | if writing to the stream causes a IOException
|
---|