Package org.eclipse.jetty.client
Interface ContentDecoder
-
- All Known Implementing Classes:
GZIPContentDecoder
public interface ContentDecoder
ContentDecoder
decodes content bytes of a response.- See Also:
ContentDecoder.Factory
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContentDecoder.Factory
Factory forContentDecoder
s; subclasses must implementContentDecoder.Factory.newContentDecoder()
.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.nio.ByteBuffer
decode(java.nio.ByteBuffer buffer)
Decodes the bytes in the givenbuffer
and returns decoded bytes, if any.default void
release(java.nio.ByteBuffer decoded)
Releases the ByteBuffer returned bydecode(ByteBuffer)
.
-
-
-
Method Detail
-
decode
java.nio.ByteBuffer decode(java.nio.ByteBuffer buffer)
Decodes the bytes in the given
buffer
and returns decoded bytes, if any.- Parameters:
buffer
- the buffer containing encoded bytes- Returns:
- a buffer containing decoded bytes, if any
-
release
default void release(java.nio.ByteBuffer decoded)
Releases the ByteBuffer returned by
decode(ByteBuffer)
.- Parameters:
decoded
- the ByteBuffer returned bydecode(ByteBuffer)
-
-