public class ByteRangeCapturingInputStream
extends com.amazonaws.internal.SdkFilterInputStream
Constructor and Description |
---|
ByteRangeCapturingInputStream(java.io.InputStream in,
long startingPosition,
long endingPosition)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlock() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
public ByteRangeCapturingInputStream(java.io.InputStream in, long startingPosition, long endingPosition)
in
- the input stream.startingPosition
- the starting position.endingPosition
- the ending position.public byte[] getBlock()
public int read() throws java.io.IOException
read
in class com.amazonaws.internal.SdkFilterInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class com.amazonaws.internal.SdkFilterInputStream
public void reset() throws java.io.IOException
reset
in class com.amazonaws.internal.SdkFilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class com.amazonaws.internal.SdkFilterInputStream
java.io.IOException