public class FileChannelBuffer
extends org.jboss.netty.buffer.AbstractChannelBuffer
implements org.jboss.netty.buffer.WrappedChannelBuffer
Constructor and Description |
---|
FileChannelBuffer(java.io.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,
java.nio.ByteBuffer dst) |
void |
getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length) |
int |
getBytes(int index,
java.nio.channels.GatheringByteChannel out,
int length) |
void |
getBytes(int index,
java.io.OutputStream out,
int length) |
java.io.InputStream |
getInputStream() |
int |
getInt(int index) |
long |
getLong(int index) |
short |
getShort(int index) |
int |
getUnsignedMedium(int index) |
boolean |
hasArray() |
boolean |
isDirect() |
java.nio.ByteOrder |
order() |
void |
readBytes(byte[] dst) |
void |
readBytes(byte[] dst,
int dstIndex,
int length) |
void |
readBytes(java.nio.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(java.nio.channels.GatheringByteChannel out,
int length) |
org.jboss.netty.buffer.ChannelBuffer |
readBytes(int length) |
void |
readBytes(java.io.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,
java.nio.ByteBuffer src) |
void |
setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length) |
int |
setBytes(int index,
java.io.InputStream in,
int length) |
int |
setBytes(int index,
java.nio.channels.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) |
java.nio.ByteBuffer |
toByteBuffer(int index,
int length) |
java.nio.ByteBuffer[] |
toByteBuffers(int index,
int length) |
java.lang.String |
toString(int q,
int a,
java.lang.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 java.io.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 java.nio.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, java.nio.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, java.io.InputStream in, int length) throws java.io.IOException
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
java.io.IOException
public int setBytes(int index, java.nio.channels.ScatteringByteChannel in, int length) throws java.io.IOException
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
java.io.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, java.nio.channels.GatheringByteChannel out, int length) throws java.io.IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
java.io.IOException
public void setByte(int i, int i1)
setByte
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, java.io.OutputStream out, int length) throws java.io.IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
java.io.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, java.nio.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 java.nio.ByteBuffer toByteBuffer(int index, int length)
toByteBuffer
in interface org.jboss.netty.buffer.ChannelBuffer
public java.nio.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(java.nio.ByteBuffer dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
public int readBytes(java.nio.channels.GatheringByteChannel out, int length) throws java.io.IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
java.io.IOException
public void readBytes(java.io.OutputStream out, int length) throws java.io.IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
readBytes
in class org.jboss.netty.buffer.AbstractChannelBuffer
java.io.IOException
public java.lang.String toString(int q, int a, java.lang.String b)
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