public final class ChecksumInputStream extends CountingInputStream
Checksum value once the stream is exhausted or the count threshold is reached.
If the Checksum does not meet the expected value when exhausted, then the input stream throws an
IOException.
If you do not need the verification or threshold feature, then use a plain CheckedInputStream.
To build an instance, use ChecksumInputStream.Builder.
ChecksumInputStream.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
ChecksumInputStream.Builder
Builds a new
ChecksumInputStream. |
| Modifier and Type | Method and Description |
|---|---|
static ChecksumInputStream.Builder |
builder()
Constructs a new
ChecksumInputStream.Builder. |
long |
getRemaining()
Gets the byte count remaining to read.
|
getByteCount, getCount, resetByteCount, resetCount, skipavailable, close, mark, markSupported, read, read, read, reset, setReference, unwrappublic static ChecksumInputStream.Builder builder()
ChecksumInputStream.Builder.ChecksumInputStream.Builder.public long getRemaining()
Copyright © 2010 - 2025 Adobe. All Rights Reserved