public class ReadableChunkingChannel extends WrapperChannel<ReadableByteChannel> implements ReadableByteChannel
| Constructor and Description |
|---|
ReadableChunkingChannel(ReadableByteChannel source,
int maxBufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(ByteBuffer dst)
Reads some bytes and put them into the destination buffer.
|
close, getWrappedChannel, isOpenpublic ReadableChunkingChannel(ReadableByteChannel source, int maxBufferSize)
source - The source channel.maxBufferSize - The total available size that can be read from the source
channel.public int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChanneldst - The destination buffer.IOExceptionCopyright © 2005–2016. All rights reserved.