public interface ContentDecoder
ContentDecoder
decodes content bytes of a response.ContentDecoder.Factory
Modifier and Type | Interface and Description |
---|---|
static class |
ContentDecoder.Factory
Factory for
ContentDecoder s; subclasses must implement ContentDecoder.Factory.newContentDecoder() . |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
decode(java.nio.ByteBuffer buffer)
Decodes the bytes in the given
buffer and returns decoded bytes, if any. |
default void |
release(java.nio.ByteBuffer decoded)
Releases the ByteBuffer returned by
decode(ByteBuffer) . |
java.nio.ByteBuffer decode(java.nio.ByteBuffer buffer)
Decodes the bytes in the given buffer
and returns decoded bytes, if any.
buffer
- the buffer containing encoded bytesdefault void release(java.nio.ByteBuffer decoded)
Releases the ByteBuffer returned by decode(ByteBuffer)
.
decoded
- the ByteBuffer returned by decode(ByteBuffer)
Copyright © 1995–2025 Webtide. All rights reserved.