public class TreeHashInputStream extends SdkFilterInputStream
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) |
abort, available, isMetricActivated, mark, markSupported, release, reset, skip
read
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 Closeable
close
in interface AutoCloseable
close
in class SdkFilterInputStream
IOException
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.