public class AdjustedRangeInputStream extends SdkInputStream
| Constructor and Description |
|---|
AdjustedRangeInputStream(java.io.InputStream objectContents,
long rangeBeginning,
long rangeEnd)
Creates a new DecryptedContentsInputStream object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected java.io.InputStream |
getWrappedInputStream()
Returns the underlying input stream, if any, from the subclass; or null
if there is no underlying input stream.
|
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
abort, abortIfNeeded, isMetricActivatedpublic AdjustedRangeInputStream(java.io.InputStream objectContents,
long rangeBeginning,
long rangeEnd)
throws java.io.IOException
objectContents - The input stream containing the object contents retrieved from S3rangeBeginning - The position of the left-most byte desired by the userrangeEnd - The position of the right-most byte desired by the userjava.io.IOException - If there are errors skipping to the left-most byte desired by the user.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprotected java.io.InputStream getWrappedInputStream()
SdkInputStreamgetWrappedInputStream in class SdkInputStream