public final class InputSubstream
extends com.amazonaws.internal.SdkFilterInputStream
in| Constructor and Description |
|---|
InputSubstream(InputStream in,
long offset,
long length,
boolean closeSourceStream)
Constructs a new InputSubstream so that when callers start reading from
this stream they'll start at the specified offset in the real stream and
after they've read the specified length, this stream will look empty.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
abort, abortIfNeeded, isMetricActivated, markSupported, release, skipreadpublic InputSubstream(InputStream in, long offset, long length, boolean closeSourceStream)
in - The input stream to wrap.offset - The offset, in bytes, into the specified input stream at which
to start reading data.length - The length, in bytes, of the specified input stream to return
through this stream.closeSourceStream - True if the wrapped InputStream should be closed when this
InputSubstream is closed.public int read()
throws IOException
read in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class com.amazonaws.internal.SdkFilterInputStreampublic void reset()
throws IOException
reset in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionpublic int available()
throws IOException
available in class com.amazonaws.internal.SdkFilterInputStreamIOExceptionCopyright © 2014. All rights reserved.