public class FileChannelBuffer
extends org.jboss.netty.buffer.AbstractChannelBuffer
implements org.jboss.netty.buffer.WrappedChannelBuffer
Constructor and Description |
---|
FileChannelBuffer(File file) |
Modifier and Type | Method and Description |
---|---|
byte[] |
array() |
int |
arrayOffset() |
int |
capacity() |
org.jboss.netty.buffer.ChannelBuffer |
copy(int index,
int length) |
void |
discardReadBytes() |
org.jboss.netty.buffer.ChannelBuffer |
duplicate() |
org.jboss.netty.buffer.ChannelBufferFactory |
factory() |
byte |
getByte(int index) |
void |
getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
void |
getBytes(int index,
ByteBuffer dst) |
void |
getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length) |
int |
getBytes(int index,
GatheringByteChannel out,
int length) |
void |
getBytes(int index,
OutputStream out,
int length) |
InputStream |
getInputStream() |
int |
getInt(int index) |
long |
getLong(int index) |
short |
getShort(int index) |
int |
getUnsignedMedium(int index) |
boolean |
hasArray() |
boolean |
isDirect() |
ByteOrder |
order() |
void |
readBytes(byte[] dst) |
void |
readBytes(byte[] dst,
int dstIndex,
int length) |
void |
readBytes(ByteBuffer dst) |
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst) |
org.jboss.netty.buffer.ChannelBuffer |
readBytes(org.jboss.netty.buffer.ChannelBufferIndexFinder endIndexFinder) |
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int length) |
void |
readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length) |
int |
readBytes(GatheringByteChannel out,
int length) |
org.jboss.netty.buffer.ChannelBuffer |
readBytes(int length) |
void |
readBytes(OutputStream out,
int length) |
int |
readerIndex() |
org.jboss.netty.buffer.ChannelBuffer |
readSlice(org.jboss.netty.buffer.ChannelBufferIndexFinder endIndexFinder) |
org.jboss.netty.buffer.ChannelBuffer |
readSlice(int length) |
void |
setByte(int index,
byte value) |
void |
setByte(int i,
int i1) |
void |
setBytes(int index,
byte[] src,
int srcIndex,
int length) |
void |
setBytes(int index,
ByteBuffer src) |
void |
setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length) |
int |
setBytes(int index,
InputStream in,
int length) |
int |
setBytes(int index,
ScatteringByteChannel in,
int length) |
void |
setInt(int index,
int value) |
void |
setLong(int index,
long value) |
void |
setMedium(int index,
int value) |
void |
setShort(int a,
int b) |
void |
setShort(int index,
short value) |
org.jboss.netty.buffer.ChannelBuffer |
slice(int index,
int length) |
ByteBuffer |
toByteBuffer(int index,
int length) |
ByteBuffer[] |
toByteBuffers(int index,
int length) |
String |
toString(int q,
int a,
String b) |
org.jboss.netty.buffer.ChannelBuffer |
unwrap() |
bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, checkReadableBytes, clear, compareTo, copy, ensureWritableBytes, equals, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getUnsignedByte, getUnsignedInt, getUnsignedShort, hashCode, indexOf, indexOf, markReaderIndex, markWriterIndex, readable, readableBytes, readByte, readChar, readDouble, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setZero, skipBytes, slice, toByteBuffer, toByteBuffers, toString, toString, toString, writable, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, clear, compareTo, copy, ensureWritableBytes, equals, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getUnsignedByte, getUnsignedInt, getUnsignedShort, hashCode, indexOf, indexOf, markReaderIndex, markWriterIndex, readable, readableBytes, readByte, readChar, readDouble, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setZero, skipBytes, slice, toByteBuffer, toByteBuffers, toString, toString, toString, writable, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero
public FileChannelBuffer(File file)
public InputStream getInputStream()
public org.jboss.netty.buffer.ChannelBuffer unwrap()
unwrap
in interface org.jboss.netty.buffer.WrappedChannelBuffer
public org.jboss.netty.buffer.ChannelBufferFactory factory()
factory
in interface org.jboss.netty.buffer.ChannelBuffer
public ByteOrder order()
order
in interface org.jboss.netty.buffer.ChannelBuffer
public boolean isDirect()
isDirect
in interface org.jboss.netty.buffer.ChannelBuffer
public boolean hasArray()
hasArray
in interface org.jboss.netty.buffer.ChannelBuffer
public byte[] array()
array
in interface org.jboss.netty.buffer.ChannelBuffer
public int arrayOffset()
arrayOffset
in interface org.jboss.netty.buffer.ChannelBuffer
public void discardReadBytes()
discardReadBytes
in interface org.jboss.netty.buffer.ChannelBuffer
discardReadBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void setByte(int index, byte value)
public void setBytes(int index, org.jboss.netty.buffer.ChannelBuffer src, int srcIndex, int length)
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void setBytes(int index, byte[] src, int srcIndex, int length)
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void setBytes(int index, ByteBuffer src)
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void setShort(int index, short value)
public void setMedium(int index, int value)
setMedium
in interface org.jboss.netty.buffer.ChannelBuffer
public void setInt(int index, int value)
setInt
in interface org.jboss.netty.buffer.ChannelBuffer
public void setLong(int index, long value)
setLong
in interface org.jboss.netty.buffer.ChannelBuffer
public int setBytes(int index, InputStream in, int length) throws IOException
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public int readerIndex()
readerIndex
in interface org.jboss.netty.buffer.ChannelBuffer
readerIndex
in class org.jboss.netty.buffer.AbstractChannelBuffer
public int getBytes(int index, GatheringByteChannel out, int length) throws IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public void setByte(int i, int i1)
setByte
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, OutputStream out, int length) throws IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public void getBytes(int index, byte[] dst, int dstIndex, int length)
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, org.jboss.netty.buffer.ChannelBuffer dst, int dstIndex, int length)
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, ByteBuffer dst)
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer duplicate()
duplicate
in interface org.jboss.netty.buffer.ChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer copy(int index, int length)
copy
in interface org.jboss.netty.buffer.ChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer slice(int index, int length)
slice
in interface org.jboss.netty.buffer.ChannelBuffer
public byte getByte(int index)
getByte
in interface org.jboss.netty.buffer.ChannelBuffer
public short getShort(int index)
getShort
in interface org.jboss.netty.buffer.ChannelBuffer
public int getUnsignedMedium(int index)
getUnsignedMedium
in interface org.jboss.netty.buffer.ChannelBuffer
public int getInt(int index)
getInt
in interface org.jboss.netty.buffer.ChannelBuffer
public long getLong(int index)
getLong
in interface org.jboss.netty.buffer.ChannelBuffer
public ByteBuffer toByteBuffer(int index, int length)
toByteBuffer
in interface org.jboss.netty.buffer.ChannelBuffer
public ByteBuffer[] toByteBuffers(int index, int length)
toByteBuffers
in interface org.jboss.netty.buffer.ChannelBuffer
toByteBuffers
in class org.jboss.netty.buffer.AbstractChannelBuffer
public int capacity()
capacity
in interface org.jboss.netty.buffer.ChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer readBytes(int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer readBytes(org.jboss.netty.buffer.ChannelBufferIndexFinder endIndexFinder)
public org.jboss.netty.buffer.ChannelBuffer readSlice(int length)
readSlice
in interface org.jboss.netty.buffer.ChannelBuffer
readSlice
in class org.jboss.netty.buffer.AbstractChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer readSlice(org.jboss.netty.buffer.ChannelBufferIndexFinder endIndexFinder)
public void readBytes(byte[] dst, int dstIndex, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void readBytes(byte[] dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst, int dstIndex, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public void readBytes(ByteBuffer dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public int readBytes(GatheringByteChannel out, int length) throws IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
IOException
public void readBytes(OutputStream out, int length) throws IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
IOException
public void setShort(int a, int b)
setShort
in interface org.jboss.netty.buffer.ChannelBuffer
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly