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, writeZeroclone, finalize, getClass, notify, notifyAll, wait, wait, waitbytesBefore, 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, writeZeropublic java.io.InputStream getInputStream()
public org.jboss.netty.buffer.ChannelBuffer unwrap()
unwrap in interface org.jboss.netty.buffer.WrappedChannelBufferpublic org.jboss.netty.buffer.ChannelBufferFactory factory()
factory in interface org.jboss.netty.buffer.ChannelBufferpublic java.nio.ByteOrder order()
order in interface org.jboss.netty.buffer.ChannelBufferpublic boolean isDirect()
isDirect in interface org.jboss.netty.buffer.ChannelBufferpublic boolean hasArray()
hasArray in interface org.jboss.netty.buffer.ChannelBufferpublic byte[] array()
array in interface org.jboss.netty.buffer.ChannelBufferpublic int arrayOffset()
arrayOffset in interface org.jboss.netty.buffer.ChannelBufferpublic void discardReadBytes()
discardReadBytes in interface org.jboss.netty.buffer.ChannelBufferdiscardReadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic 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.ChannelBufferpublic void setBytes(int index,
byte[] src,
int srcIndex,
int length)
setBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void setBytes(int index,
java.nio.ByteBuffer src)
setBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void setShort(int index,
short value)
public void setMedium(int index,
int value)
setMedium in interface org.jboss.netty.buffer.ChannelBufferpublic void setInt(int index,
int value)
setInt in interface org.jboss.netty.buffer.ChannelBufferpublic void setLong(int index,
long value)
setLong in interface org.jboss.netty.buffer.ChannelBufferpublic int setBytes(int index,
java.io.InputStream in,
int length)
throws java.io.IOException
setBytes in interface org.jboss.netty.buffer.ChannelBufferjava.io.IOExceptionpublic int setBytes(int index,
java.nio.channels.ScatteringByteChannel in,
int length)
throws java.io.IOException
setBytes in interface org.jboss.netty.buffer.ChannelBufferjava.io.IOExceptionpublic int readerIndex()
readerIndex in interface org.jboss.netty.buffer.ChannelBufferreaderIndex in class org.jboss.netty.buffer.AbstractChannelBufferpublic int getBytes(int index,
java.nio.channels.GatheringByteChannel out,
int length)
throws java.io.IOException
getBytes in interface org.jboss.netty.buffer.ChannelBufferjava.io.IOExceptionpublic void setByte(int i,
int i1)
setByte in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
java.io.OutputStream out,
int length)
throws java.io.IOException
getBytes in interface org.jboss.netty.buffer.ChannelBufferjava.io.IOExceptionpublic void getBytes(int index,
byte[] dst,
int dstIndex,
int length)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
java.nio.ByteBuffer dst)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer duplicate()
duplicate in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer copy(int index,
int length)
copy in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer slice(int index,
int length)
slice in interface org.jboss.netty.buffer.ChannelBufferpublic byte getByte(int index)
getByte in interface org.jboss.netty.buffer.ChannelBufferpublic short getShort(int index)
getShort in interface org.jboss.netty.buffer.ChannelBufferpublic int getUnsignedMedium(int index)
getUnsignedMedium in interface org.jboss.netty.buffer.ChannelBufferpublic int getInt(int index)
getInt in interface org.jboss.netty.buffer.ChannelBufferpublic long getLong(int index)
getLong in interface org.jboss.netty.buffer.ChannelBufferpublic java.nio.ByteBuffer toByteBuffer(int index,
int length)
toByteBuffer in interface org.jboss.netty.buffer.ChannelBufferpublic java.nio.ByteBuffer[] toByteBuffers(int index,
int length)
toByteBuffers in interface org.jboss.netty.buffer.ChannelBuffertoByteBuffers in class org.jboss.netty.buffer.AbstractChannelBufferpublic int capacity()
capacity in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer readBytes(int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic 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.ChannelBufferreadSlice in class org.jboss.netty.buffer.AbstractChannelBufferpublic 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.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic void readBytes(byte[] dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic void readBytes(java.nio.ByteBuffer dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferpublic int readBytes(java.nio.channels.GatheringByteChannel out,
int length)
throws java.io.IOException
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferjava.io.IOExceptionpublic void readBytes(java.io.OutputStream out,
int length)
throws java.io.IOException
readBytes in interface org.jboss.netty.buffer.ChannelBufferreadBytes in class org.jboss.netty.buffer.AbstractChannelBufferjava.io.IOExceptionpublic 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.ChannelBufferGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly