Package io.servicetalk.encoding.api
Interface BufferDecoder
- All Known Subinterfaces:
BufferEncoderDecoder
- All Known Implementing Classes:
ContentCodecToBufferDecoder
public interface BufferDecoder
Used to decode buffers for aggregated and streaming use cases.
-
Method Summary
Modifier and TypeMethodDescriptiondecoder()Get theDeserializerto use for aggregated content.Get the name of the encoding.Get theStreamingDeserializerto use for streaming content.
-
Method Details
-
decoder
Deserializer<Buffer> decoder()Get theDeserializerto use for aggregated content.- Returns:
- the
Deserializerto use for aggregated content.
-
streamingDecoder
StreamingDeserializer<Buffer> streamingDecoder()Get theStreamingDeserializerto use for streaming content.- Returns:
- the
StreamingDeserializerto use for streaming content.
-
encodingName
CharSequence encodingName()Get the name of the encoding.- Returns:
- the name of the encoding.
-