|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.io.WrapperChannel<java.nio.channels.ReadableByteChannel>
org.restlet.engine.io.ReadableChunkingChannel
public class ReadableChunkingChannel
Readable byte channel capable of encoding chunked entities.
Constructor Summary | |
---|---|
ReadableChunkingChannel(java.nio.channels.ReadableByteChannel source,
int maxBufferSize)
Constructor. |
Method Summary | |
---|---|
int |
read(java.nio.ByteBuffer dst)
Reads some bytes and put them into the destination buffer. |
Methods inherited from class org.restlet.engine.io.WrapperChannel |
---|
close, getWrappedChannel, isOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.nio.channels.Channel |
---|
close, isOpen |
Constructor Detail |
---|
public ReadableChunkingChannel(java.nio.channels.ReadableByteChannel source, int maxBufferSize)
source
- The source channel.maxBufferSize
- The total available size that can be read from the source
channel.Method Detail |
---|
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
dst
- The destination buffer.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |