Closeable, AutoCloseable, Releasable, MetricAwarepublic class TreeHashInputStream extends SdkFilterInputStream
| Constructor | Description |
|---|---|
TreeHashInputStream(InputStream in) |
| Modifier and Type | Method | 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) |
readreadAllBytes, readNBytes, transferToequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleaseavailable, isMetricActivated, mark, markSupported, release, 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 SdkFilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class SdkFilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class SdkFilterInputStreamIOExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.