Java java.security DigestInputStream fields, constructors, methods, implement or subclass

Example usage for Java java.security DigestInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.security DigestInputStream.

The text is from its open source code.

Field

booleanon

Constructor

DigestInputStream(InputStream stream, MessageDigest digest)
Creates a digest input stream, using the specified input stream and message digest.

Method

intavailable()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
voidclose()
Closes this input stream and releases any system resources associated with the stream.
MessageDigestgetMessageDigest()
Returns the message digest associated with this stream.
intread()
Reads a byte, and updates the message digest (if the digest function is on).
intread(byte[] b, int off, int len)
Reads into a byte array, and updates the message digest (if the digest function is on).
intread(byte b[])
Reads up to b.length bytes of data from this input stream into an array of bytes.