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 theDeserializer
to use for aggregated content.Get the name of the encoding.Get theStreamingDeserializer
to use for streaming content.
-
Method Details
-
decoder
Deserializer<Buffer> decoder()Get theDeserializer
to use for aggregated content.- Returns:
- the
Deserializer
to use for aggregated content.
-
streamingDecoder
StreamingDeserializer<Buffer> streamingDecoder()Get theStreamingDeserializer
to use for streaming content.- Returns:
- the
StreamingDeserializer
to use for streaming content.
-
encodingName
CharSequence encodingName()Get the name of the encoding.- Returns:
- the name of the encoding.
-