Class StreamingResponseBody.WriterBody
java.lang.Object
com.soklet.StreamingResponseBody.WriterBody
- All Implemented Interfaces:
StreamingResponseBody
- Enclosing interface:
StreamingResponseBody
public static final class StreamingResponseBody.WriterBody
extends Object
implements StreamingResponseBody
A streaming body backed by a writer callback.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from interface StreamingResponseBody
StreamingResponseBody.InputStreamBody, StreamingResponseBody.InputStreamBuilder, StreamingResponseBody.PublisherBody, StreamingResponseBody.ReaderBody, StreamingResponseBody.ReaderBuilder, StreamingResponseBody.WriterBodyModifier and TypeInterfaceDescriptionstatic final classA streaming body backed by anInputStreamsupplier.static final classBuilder for input-stream-backed response bodies.static final classA streaming body backed by aFlow.Publisher.static final classA streaming body backed by aReadersupplier.static final classBuilder for reader-backed response bodies.static final classA streaming body backed by a writer callback. -
Field Summary
Fields inherited from interface StreamingResponseBody
DEFAULT_INPUT_STREAM_BUFFER_SIZE_IN_BYTES, DEFAULT_MALFORMED_INPUT_ACTION, DEFAULT_READER_BUFFER_SIZE_IN_CHARACTERS, DEFAULT_UNMAPPABLE_CHARACTER_ACTIONModifier and TypeFieldDescriptionstatic final @NonNull CodingErrorActionstatic final @NonNull CodingErrorAction -
Method Summary
Modifier and TypeMethodDescriptionThe callback that writes the response body.
-
Method Details
-
getWriter
The callback that writes the response body.- Returns:
- the streaming response writer
-