public class BufferHandler extends Object
| Constructor and Description |
|---|
BufferHandler(byte[] buffer)
Create a new BufferHandler
|
BufferHandler(FileChannel channel,
ByteBuffer buffer)
Create a new BufferHandler
|
public BufferHandler(byte[] buffer)
buffer - The buffer used to transfer datapublic BufferHandler(FileChannel channel, ByteBuffer buffer)
channel - The channel to readbuffer - The buffer used to transfer datapublic byte[] getBuffer()
public byte[] read(int len)
throws IOException
len - The number of bytes to readIOExceptionCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.