Package io.servicetalk.encoding.api
Interface BufferEncoder
- All Known Subinterfaces:
BufferEncoderDecoder
- All Known Implementing Classes:
ContentCodecToBufferEncoder
public interface BufferEncoder
Used to encode buffers for aggregated and streaming use cases.
-
Method Summary
Modifier and TypeMethodDescriptionencoder()
Get theSerializer
to use for aggregated content.Get the name of the encoding.Get theStreamingSerializer
to use for streaming content.
-
Method Details
-
encoder
Serializer<Buffer> encoder()Get theSerializer
to use for aggregated content.- Returns:
- the
Serializer
to use for aggregated content.
-
streamingEncoder
StreamingSerializer<Buffer> streamingEncoder()Get theStreamingSerializer
to use for streaming content.- Returns:
- the
StreamingSerializer
to use for streaming content.
-
encodingName
CharSequence encodingName()Get the name of the encoding.- Returns:
- the name of the encoding.
-