Closeable
, AutoCloseable
, Releasable
, MetricAware
public 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) |
read
readAllBytes, readNBytes, transferTo
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
available, isMetricActivated, mark, markSupported, release, reset, skip
public TreeHashInputStream(InputStream in) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public List<byte[]> getChecksums() throws IOException
IOException
- If the stream hasn't been closed.public String getTreeHash() throws IOException
IOException
public int read() throws IOException
read
in class SdkFilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class SdkFilterInputStream
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class SdkFilterInputStream
IOException
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.