public static class SecureHash.HashingInputStream extends InputStream
Modifier | Constructor and Description |
---|---|
protected |
HashingInputStream(MessageDigest digest,
InputStream input) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
byte[] |
getHash()
Get the hash of the content read by this stream.
|
String |
getHashAsHexString()
Get the string representation of the binary hash of the content read by this stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, reset, skip
protected HashingInputStream(MessageDigest digest, InputStream input)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public byte[] getHash()
public String getHashAsHexString()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.