public class TreeHashInputStream extends FilterInputStream
in| Constructor and Description |
|---|
TreeHashInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<byte[]> |
getChecksums()
Returns the list of one-megabyte checksums for this input stream.
|
String |
getTreeHash() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic TreeHashInputStream(InputStream in) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic List<byte[]> getChecksums() throws IOException
IOException - If the stream hasn't been closed.public String getTreeHash() throws IOException
IOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2016. All rights reserved.