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.ReadableByteChannel
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel