@Override
	public synchronized void mark(int readlimit) {
		super.mark(readlimit);
		if (markSupported()) {
			markedStreamPosition = streamPosition;
			markedBlockPosition = blockPosition;
		}
	}
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