public class AdjustedRangeInputStream extends SdkInputStream
Constructor and Description |
---|
AdjustedRangeInputStream(InputStream objectContents,
long rangeBeginning,
long rangeEnd)
Creates a new DecryptedContentsInputStream object.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected 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, isMetricActivated, release
mark, markSupported, read, reset, skip
public AdjustedRangeInputStream(InputStream objectContents, long rangeBeginning, long rangeEnd) throws 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 userIOException
- If there are errors skipping to the left-most byte desired by the user.public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
protected InputStream getWrappedInputStream()
SdkInputStream
getWrappedInputStream
in class SdkInputStream
Copyright © 2024. All rights reserved.