- All Known Implementing Classes:
GZIPContentDecoder
public interface ContentDecoder
ContentDecoder decodes content bytes of a response.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classFactory forContentDecoders; subclasses must implementContentDecoder.Factory.newContentDecoder(). -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.io.RetainableByteBufferdecode(ByteBuffer buffer) Decodes the bytes in the givenbufferand returns the decoded bytes.
-
Method Details
-
decode
Decodes the bytes in the given
bufferand returns the decoded bytes.The returned
RetainableByteBuffercontaining the decoded bytes may be empty and must be released viaRetainable.release().- Parameters:
buffer- the buffer containing encoded bytes- Returns:
- a buffer containing decoded bytes that must be released
-