public class AdjustedRangeInputStream
extends com.amazonaws.internal.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() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
public 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.InputStream
java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
protected java.io.InputStream getWrappedInputStream()
getWrappedInputStream
in class com.amazonaws.internal.SdkInputStream