public interface ContentDecoder
ContentDecoder decodes content bytes of a response.ContentDecoder.Factory| Modifier and Type | Interface and Description |
|---|---|
static class |
ContentDecoder.Factory
Factory for
ContentDecoders; subclasses must implement ContentDecoder.Factory.newContentDecoder(). |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
decode(ByteBuffer buffer)
Decodes the bytes in the given
buffer and returns decoded bytes, if any. |
default void |
release(ByteBuffer decoded)
Releases the ByteBuffer returned by
decode(ByteBuffer). |
ByteBuffer decode(ByteBuffer buffer)
Decodes the bytes in the given buffer and returns decoded bytes, if any.
buffer - the buffer containing encoded bytesdefault void release(ByteBuffer decoded)
Releases the ByteBuffer returned by decode(ByteBuffer).
decoded - the ByteBuffer returned by decode(ByteBuffer)Copyright © 2010 - 2020 Adobe. All Rights Reserved