Closeable, AutoCloseable, Releasable, MetricAwarepublic class CountingInputStream extends SdkFilterInputStream
| Constructor | Description |
|---|---|
CountingInputStream(InputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getByteCount() |
Returns the number of bytes read from this stream so far.
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
readreadAllBytes, readNBytes, transferToequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleaseavailable, close, isMetricActivated, mark, markSupported, release, reset, skippublic CountingInputStream(InputStream in)
public long getByteCount()
public int read()
throws IOException
read in class SdkFilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class SdkFilterInputStreamIOExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.