Modifier and Type | Method and Description |
---|---|
static CapturingInputStream.Config.Builder |
CapturingInputStream.config()
Creates a builder for capturing input stream configurations.
|
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.doneAfter(long count)
Sets the number of bytes after which built capturing input streams are considered to be done.
|
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.onDone(Consumer<? super CapturingInputStream> callback)
Sets a callback that will be triggered when reading from built capturing input streams is done.
|
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.onError(BiConsumer<? super CapturingInputStream,? super IOException> callback)
Sets a callback that will be triggered when an
IOException occurs while using built capturing input streams. |
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.onLimitReached(Consumer<? super CapturingInputStream> callback)
Sets a callback that will be triggered when built capturing input streams hit their limit.
|
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.withExpectedCount(int expectedCount)
Sets the expected number of bytes that can be read from the wrapped input stream.
|
CapturingInputStream.Config.Builder |
CapturingInputStream.Config.Builder.withLimit(int limit)
Sets the maximum number of bytes to capture.
|
Copyright © 2020–2024. All rights reserved.