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, skipprotected HashingInputStream(MessageDigest digest, InputStream input)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic byte[] getHash()
public String getHashAsHexString()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.