public class ByteBufferContext extends HTTPContext
| Constructor and Description |
|---|
ByteBufferContext(java.nio.ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize() |
long |
read(java.nio.channels.SocketChannel channel,
long position)
read as much bytes as possible, from the resource to the given channel.
|
getPathpublic long getSize()
getSize in class HTTPContextpublic long read(java.nio.channels.SocketChannel channel,
long position)
throws java.io.IOException
HTTPContextread in class HTTPContextchannel - the channel to write toposition - the beginning position to read, inclusive.java.io.IOException