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, isOpen
public 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 ReadableByteChannel
dst
- The destination buffer.IOException
Copyright © 2005–2013. All rights reserved.