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 Reader
IOException
Reader.read()
public int read(char[] b, int off, int len) throws IOException
read
in class Reader
IOException
Reader.read(char[], int, int)
public int read(char[] b) throws IOException
read
in class Reader
IOException
Reader.read(char[])
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
InputStream.close()
public byte[] getHash()
public String getHashAsHexString()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.