Package org.eclipse.jetty.client
Interface ContentDecoder
-
- All Known Implementing Classes:
GZIPContentDecoder
public interface ContentDecoderContentDecoderdecodes content bytes of a response.- See Also:
ContentDecoder.Factory
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContentDecoder.FactoryFactory forContentDecoders; subclasses must implementContentDecoder.Factory.newContentDecoder().
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferdecode(ByteBuffer buffer)Decodes the bytes in the givenbufferand returns decoded bytes, if any.
-
-
-
Method Detail
-
decode
ByteBuffer decode(ByteBuffer buffer)
Decodes the bytes in the given
bufferand returns decoded bytes, if any.- Parameters:
buffer- the buffer containing encoded bytes- Returns:
- a buffer containing decoded bytes, if any
-
-