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