Class ByteRangeCapturingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.amazonaws.internal.SdkFilterInputStream
-
- com.amazonaws.services.s3.internal.crypto.ByteRangeCapturingInputStream
-
- All Implemented Interfaces:
com.amazonaws.internal.MetricAware
,com.amazonaws.internal.Releasable
,Closeable
,AutoCloseable
public class ByteRangeCapturingInputStream extends com.amazonaws.internal.SdkFilterInputStream
FilterInputStream that captures a range of bytes from a wrapped input stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ByteRangeCapturingInputStream(InputStream in, long startingPosition, long endingPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBlock()
void
mark(int readlimit)
int
read()
int
read(byte[] b, int off, int len)
void
reset()
-
Methods inherited from class com.amazonaws.internal.SdkFilterInputStream
abort, abortIfNeeded, available, close, isMetricActivated, markSupported, release, skip
-
Methods inherited from class java.io.FilterInputStream
read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ByteRangeCapturingInputStream
public ByteRangeCapturingInputStream(InputStream in, long startingPosition, long endingPosition)
-
-
Method Detail
-
getBlock
public byte[] getBlock()
-
read
public int read() throws IOException
- Overrides:
read
in classcom.amazonaws.internal.SdkFilterInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classcom.amazonaws.internal.SdkFilterInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classcom.amazonaws.internal.SdkFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classcom.amazonaws.internal.SdkFilterInputStream
- Throws:
IOException
-
-