public static class SecureHash.HashingReader extends Reader
| Modifier | Constructor and Description |
|---|---|
protected |
HashingReader(MessageDigest digest,
Reader input,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getHash()
Get the hash of the content read by this reader.
|
String |
getHashAsHexString()
Get the string representation of the binary hash of the content read by this reader.
|
int |
read() |
int |
read(char[] b) |
int |
read(char[] b,
int off,
int len) |
protected HashingReader(MessageDigest digest, Reader input, Charset charset)
public int read()
throws IOException
read in class ReaderIOExceptionReader.read()public int read(char[] b,
int off,
int len)
throws IOException
read in class ReaderIOExceptionReader.read(char[], int, int)public int read(char[] b)
throws IOException
read in class ReaderIOExceptionReader.read(char[])public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionInputStream.close()public byte[] getHash()
public String getHashAsHexString()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.