public class ContentDecoderChannel
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel
ReadableByteChannel that delegates to a ContentDecoder.
Attempts to close this channel are ignored, and isOpen() always
returns true.| Modifier and Type | Field and Description |
|---|---|
private ContentDecoder |
decoder |
| Constructor and Description |
|---|
ContentDecoderChannel(ContentDecoder decoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(java.nio.ByteBuffer dst) |
private final ContentDecoder decoder
public ContentDecoderChannel(ContentDecoder decoder)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channelpublic boolean isOpen()
isOpen in interface java.nio.channels.Channel