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 theSerializerto use for aggregated content.Get the name of the encoding.Get theStreamingSerializerto use for streaming content.
-
Method Details
-
encoder
Serializer<Buffer> encoder()Get theSerializerto use for aggregated content.- Returns:
- the
Serializerto use for aggregated content.
-
streamingEncoder
StreamingSerializer<Buffer> streamingEncoder()Get theStreamingSerializerto use for streaming content.- Returns:
- the
StreamingSerializerto use for streaming content.
-
encodingName
CharSequence encodingName()Get the name of the encoding.- Returns:
- the name of the encoding.
-