@Override
	public synchronized void reset() throws IOException {
		super.reset();
		if (markSupported()) {
			streamPosition = markedStreamPosition;
			blockPosition = markedBlockPosition;
		}
	}
FilterInputStream that captures a range of bytes from a wrapped input stream.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ByteRangeCapturingInputStream.java