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