public class LengthCountingPseudoChannelBuffer extends Object implements org.jboss.netty.buffer.ChannelBuffer
| Constructor and Description |
|---|
LengthCountingPseudoChannelBuffer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
int |
arrayOffset() |
int |
bytesBefore(byte value) |
int |
bytesBefore(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder) |
int |
bytesBefore(int length,
byte value) |
int |
bytesBefore(int length,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder) |
int |
bytesBefore(int index,
int length,
byte value) |
int |
bytesBefore(int index,
int length,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder) |
int |
capacity() |
void |
clear() |
int |
compareTo(org.jboss.netty.buffer.ChannelBuffer buffer) |
org.jboss.netty.buffer.ChannelBuffer |
copy() |
org.jboss.netty.buffer.ChannelBuffer |
copy(int index,
int length) |
void |
discardReadBytes() |
org.jboss.netty.buffer.ChannelBuffer |
duplicate() |
void |
ensureWritableBytes(int writableBytes) |
org.jboss.netty.buffer.ChannelBufferFactory |
factory() |
byte |
getByte(int index) |
void |
getBytes(int index,
byte[] dst) |
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) |
void |
getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
int length) |
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) |
char |
getChar(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
int |
getInt(int index) |
long |
getLong(int index) |
int |
getMedium(int index) |
short |
getShort(int index) |
short |
getUnsignedByte(int index) |
long |
getUnsignedInt(int index) |
int |
getUnsignedMedium(int index) |
int |
getUnsignedShort(int index) |
boolean |
hasArray() |
int |
indexOf(int fromIndex,
int toIndex,
byte value) |
int |
indexOf(int fromIndex,
int toIndex,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder) |
boolean |
isDirect() |
void |
markReaderIndex() |
void |
markWriterIndex() |
ByteOrder |
order() |
boolean |
readable() |
int |
readableBytes() |
byte |
readByte() |
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 indexFinder)
Deprecated.
|
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) |
char |
readChar() |
double |
readDouble() |
int |
readerIndex() |
void |
readerIndex(int readerIndex) |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
int |
readMedium() |
short |
readShort() |
org.jboss.netty.buffer.ChannelBuffer |
readSlice(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
Deprecated.
|
org.jboss.netty.buffer.ChannelBuffer |
readSlice(int length) |
short |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedMedium() |
int |
readUnsignedShort() |
void |
resetReaderIndex() |
void |
resetWriterIndex() |
void |
setByte(int index,
int value) |
void |
setBytes(int index,
byte[] src) |
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) |
void |
setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int length) |
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 |
setChar(int index,
int value) |
void |
setDouble(int index,
double value) |
void |
setFloat(int index,
float value) |
void |
setIndex(int readerIndex,
int writerIndex) |
void |
setInt(int index,
int value) |
void |
setLong(int index,
long value) |
void |
setMedium(int index,
int value) |
void |
setShort(int index,
int value) |
void |
setZero(int index,
int length) |
int |
skipBytes(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
Deprecated.
|
void |
skipBytes(int length) |
org.jboss.netty.buffer.ChannelBuffer |
slice() |
org.jboss.netty.buffer.ChannelBuffer |
slice(int index,
int length) |
ByteBuffer |
toByteBuffer() |
ByteBuffer |
toByteBuffer(int index,
int length) |
ByteBuffer[] |
toByteBuffers() |
ByteBuffer[] |
toByteBuffers(int index,
int length) |
String |
toString(Charset charset) |
String |
toString(int index,
int length,
Charset charset) |
String |
toString(int index,
int length,
String charsetName)
Deprecated.
|
String |
toString(int index,
int length,
String charsetName,
org.jboss.netty.buffer.ChannelBufferIndexFinder terminatorFinder)
Deprecated.
|
String |
toString(String charsetName)
Deprecated.
|
String |
toString(String charsetName,
org.jboss.netty.buffer.ChannelBufferIndexFinder terminatorFinder)
Deprecated.
|
boolean |
writable() |
int |
writableBytes() |
void |
writeByte(int value) |
void |
writeBytes(byte[] src) |
void |
writeBytes(byte[] src,
int srcIndex,
int length) |
void |
writeBytes(ByteBuffer src) |
void |
writeBytes(org.jboss.netty.buffer.ChannelBuffer src) |
void |
writeBytes(org.jboss.netty.buffer.ChannelBuffer src,
int length) |
void |
writeBytes(org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length) |
int |
writeBytes(InputStream in,
int length) |
int |
writeBytes(ScatteringByteChannel in,
int length) |
void |
writeChar(int value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeMedium(int value) |
int |
writerIndex() |
void |
writerIndex(int writerIndex) |
void |
writeShort(int value) |
void |
writeZero(int length) |
public org.jboss.netty.buffer.ChannelBufferFactory factory()
factory in interface org.jboss.netty.buffer.ChannelBufferpublic int capacity()
capacity in interface org.jboss.netty.buffer.ChannelBufferpublic ByteOrder order()
order in interface org.jboss.netty.buffer.ChannelBufferpublic boolean isDirect()
isDirect in interface org.jboss.netty.buffer.ChannelBufferpublic int readerIndex()
readerIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void readerIndex(int readerIndex)
readerIndex in interface org.jboss.netty.buffer.ChannelBufferpublic int writerIndex()
writerIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void writerIndex(int writerIndex)
writerIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void setIndex(int readerIndex,
int writerIndex)
setIndex in interface org.jboss.netty.buffer.ChannelBufferpublic int readableBytes()
readableBytes in interface org.jboss.netty.buffer.ChannelBufferpublic int writableBytes()
writableBytes in interface org.jboss.netty.buffer.ChannelBufferpublic boolean readable()
readable in interface org.jboss.netty.buffer.ChannelBufferpublic boolean writable()
writable in interface org.jboss.netty.buffer.ChannelBufferpublic void clear()
clear in interface org.jboss.netty.buffer.ChannelBufferpublic void markReaderIndex()
markReaderIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void resetReaderIndex()
resetReaderIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void markWriterIndex()
markWriterIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void resetWriterIndex()
resetWriterIndex in interface org.jboss.netty.buffer.ChannelBufferpublic void discardReadBytes()
discardReadBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void ensureWritableBytes(int writableBytes)
ensureWritableBytes in interface org.jboss.netty.buffer.ChannelBufferpublic byte getByte(int index)
getByte in interface org.jboss.netty.buffer.ChannelBufferpublic short getUnsignedByte(int index)
getUnsignedByte in interface org.jboss.netty.buffer.ChannelBufferpublic short getShort(int index)
getShort in interface org.jboss.netty.buffer.ChannelBufferpublic int getUnsignedShort(int index)
getUnsignedShort in interface org.jboss.netty.buffer.ChannelBufferpublic int getMedium(int index)
getMedium 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 getUnsignedInt(int index)
getUnsignedInt in interface org.jboss.netty.buffer.ChannelBufferpublic long getLong(int index)
getLong in interface org.jboss.netty.buffer.ChannelBufferpublic char getChar(int index)
getChar in interface org.jboss.netty.buffer.ChannelBufferpublic float getFloat(int index)
getFloat in interface org.jboss.netty.buffer.ChannelBufferpublic double getDouble(int index)
getDouble in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
org.jboss.netty.buffer.ChannelBuffer dst,
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,
byte[] dst)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
byte[] dst,
int dstIndex,
int length)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
ByteBuffer dst)
getBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void getBytes(int index,
OutputStream out,
int length)
throws IOException
getBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic int getBytes(int index,
GatheringByteChannel out,
int length)
throws IOException
getBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic void setByte(int index,
int value)
setByte in interface org.jboss.netty.buffer.ChannelBufferpublic void setShort(int index,
int value)
setShort in interface org.jboss.netty.buffer.ChannelBufferpublic 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 void setChar(int index,
int value)
setChar in interface org.jboss.netty.buffer.ChannelBufferpublic void setFloat(int index,
float value)
setFloat in interface org.jboss.netty.buffer.ChannelBufferpublic void setDouble(int index,
double value)
setDouble in interface org.jboss.netty.buffer.ChannelBufferpublic void setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src)
setBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void setBytes(int index,
org.jboss.netty.buffer.ChannelBuffer src,
int length)
setBytes in interface org.jboss.netty.buffer.ChannelBufferpublic 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)
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,
ByteBuffer src)
setBytes in interface org.jboss.netty.buffer.ChannelBufferpublic int setBytes(int index,
InputStream in,
int length)
throws IOException
setBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic int setBytes(int index,
ScatteringByteChannel in,
int length)
throws IOException
setBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic void setZero(int index,
int length)
setZero in interface org.jboss.netty.buffer.ChannelBufferpublic byte readByte()
readByte in interface org.jboss.netty.buffer.ChannelBufferpublic short readUnsignedByte()
readUnsignedByte in interface org.jboss.netty.buffer.ChannelBufferpublic short readShort()
readShort in interface org.jboss.netty.buffer.ChannelBufferpublic int readUnsignedShort()
readUnsignedShort in interface org.jboss.netty.buffer.ChannelBufferpublic int readMedium()
readMedium in interface org.jboss.netty.buffer.ChannelBufferpublic int readUnsignedMedium()
readUnsignedMedium in interface org.jboss.netty.buffer.ChannelBufferpublic int readInt()
readInt in interface org.jboss.netty.buffer.ChannelBufferpublic long readUnsignedInt()
readUnsignedInt in interface org.jboss.netty.buffer.ChannelBufferpublic long readLong()
readLong in interface org.jboss.netty.buffer.ChannelBufferpublic char readChar()
readChar in interface org.jboss.netty.buffer.ChannelBufferpublic float readFloat()
readFloat in interface org.jboss.netty.buffer.ChannelBufferpublic double readDouble()
readDouble in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer readBytes(int length)
readBytes in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public org.jboss.netty.buffer.ChannelBuffer readBytes(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer readSlice(int length)
readSlice in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public org.jboss.netty.buffer.ChannelBuffer readSlice(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
readSlice in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(org.jboss.netty.buffer.ChannelBuffer dst,
int dstIndex,
int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(byte[] dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(byte[] dst,
int dstIndex,
int length)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(ByteBuffer dst)
readBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void readBytes(OutputStream out, int length) throws IOException
readBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic int readBytes(GatheringByteChannel out, int length) throws IOException
readBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic void skipBytes(int length)
skipBytes in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public int skipBytes(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
skipBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeByte(int value)
writeByte in interface org.jboss.netty.buffer.ChannelBufferpublic void writeShort(int value)
writeShort in interface org.jboss.netty.buffer.ChannelBufferpublic void writeMedium(int value)
writeMedium in interface org.jboss.netty.buffer.ChannelBufferpublic void writeInt(int value)
writeInt in interface org.jboss.netty.buffer.ChannelBufferpublic void writeLong(long value)
writeLong in interface org.jboss.netty.buffer.ChannelBufferpublic void writeChar(int value)
writeChar in interface org.jboss.netty.buffer.ChannelBufferpublic void writeFloat(float value)
writeFloat in interface org.jboss.netty.buffer.ChannelBufferpublic void writeDouble(double value)
writeDouble in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(org.jboss.netty.buffer.ChannelBuffer src)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(org.jboss.netty.buffer.ChannelBuffer src,
int length)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(org.jboss.netty.buffer.ChannelBuffer src,
int srcIndex,
int length)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(byte[] src)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(byte[] src,
int srcIndex,
int length)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic void writeBytes(ByteBuffer src)
writeBytes in interface org.jboss.netty.buffer.ChannelBufferpublic int writeBytes(InputStream in, int length) throws IOException
writeBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic int writeBytes(ScatteringByteChannel in, int length) throws IOException
writeBytes in interface org.jboss.netty.buffer.ChannelBufferIOExceptionpublic void writeZero(int length)
writeZero in interface org.jboss.netty.buffer.ChannelBufferpublic int indexOf(int fromIndex,
int toIndex,
byte value)
indexOf in interface org.jboss.netty.buffer.ChannelBufferpublic int indexOf(int fromIndex,
int toIndex,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
indexOf in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(byte value)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(int length,
byte value)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(int length,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(int index,
int length,
byte value)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic int bytesBefore(int index,
int length,
org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore in interface org.jboss.netty.buffer.ChannelBufferpublic org.jboss.netty.buffer.ChannelBuffer copy()
copy 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()
slice 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 org.jboss.netty.buffer.ChannelBuffer duplicate()
duplicate in interface org.jboss.netty.buffer.ChannelBufferpublic ByteBuffer toByteBuffer()
toByteBuffer in interface org.jboss.netty.buffer.ChannelBufferpublic ByteBuffer toByteBuffer(int index, int length)
toByteBuffer in interface org.jboss.netty.buffer.ChannelBufferpublic ByteBuffer[] toByteBuffers()
toByteBuffers in interface org.jboss.netty.buffer.ChannelBufferpublic ByteBuffer[] toByteBuffers(int index, int length)
toByteBuffers 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 String toString(Charset charset)
toString in interface org.jboss.netty.buffer.ChannelBufferpublic String toString(int index, int length, Charset charset)
toString in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public String toString(String charsetName)
toString in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public String toString(String charsetName, org.jboss.netty.buffer.ChannelBufferIndexFinder terminatorFinder)
toString in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public String toString(int index, int length, String charsetName)
toString in interface org.jboss.netty.buffer.ChannelBuffer@Deprecated public String toString(int index, int length, String charsetName, org.jboss.netty.buffer.ChannelBufferIndexFinder terminatorFinder)
toString in interface org.jboss.netty.buffer.ChannelBufferpublic int compareTo(org.jboss.netty.buffer.ChannelBuffer buffer)
compareTo in interface Comparable<org.jboss.netty.buffer.ChannelBuffer>compareTo in interface org.jboss.netty.buffer.ChannelBufferCopyright © 2014. All rights reserved.