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.ChannelBuffer
public int capacity()
capacity
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 int readerIndex()
readerIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void readerIndex(int readerIndex)
readerIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public int writerIndex()
writerIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void writerIndex(int writerIndex)
writerIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void setIndex(int readerIndex, int writerIndex)
setIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public int readableBytes()
readableBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public int writableBytes()
writableBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public boolean readable()
readable
in interface org.jboss.netty.buffer.ChannelBuffer
public boolean writable()
writable
in interface org.jboss.netty.buffer.ChannelBuffer
public void clear()
clear
in interface org.jboss.netty.buffer.ChannelBuffer
public void markReaderIndex()
markReaderIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void resetReaderIndex()
resetReaderIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void markWriterIndex()
markWriterIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void resetWriterIndex()
resetWriterIndex
in interface org.jboss.netty.buffer.ChannelBuffer
public void discardReadBytes()
discardReadBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void ensureWritableBytes(int writableBytes)
ensureWritableBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public byte getByte(int index)
getByte
in interface org.jboss.netty.buffer.ChannelBuffer
public short getUnsignedByte(int index)
getUnsignedByte
in interface org.jboss.netty.buffer.ChannelBuffer
public short getShort(int index)
getShort
in interface org.jboss.netty.buffer.ChannelBuffer
public int getUnsignedShort(int index)
getUnsignedShort
in interface org.jboss.netty.buffer.ChannelBuffer
public int getMedium(int index)
getMedium
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 getUnsignedInt(int index)
getUnsignedInt
in interface org.jboss.netty.buffer.ChannelBuffer
public long getLong(int index)
getLong
in interface org.jboss.netty.buffer.ChannelBuffer
public char getChar(int index)
getChar
in interface org.jboss.netty.buffer.ChannelBuffer
public float getFloat(int index)
getFloat
in interface org.jboss.netty.buffer.ChannelBuffer
public double getDouble(int index)
getDouble
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, org.jboss.netty.buffer.ChannelBuffer dst)
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, org.jboss.netty.buffer.ChannelBuffer dst, 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, byte[] dst)
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void getBytes(int index, byte[] 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 void getBytes(int index, OutputStream out, int length) throws IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public int getBytes(int index, GatheringByteChannel out, int length) throws IOException
getBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public void setByte(int index, int value)
setByte
in interface org.jboss.netty.buffer.ChannelBuffer
public void setShort(int index, int value)
setShort
in interface org.jboss.netty.buffer.ChannelBuffer
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 void setChar(int index, int value)
setChar
in interface org.jboss.netty.buffer.ChannelBuffer
public void setFloat(int index, float value)
setFloat
in interface org.jboss.netty.buffer.ChannelBuffer
public void setDouble(int index, double value)
setDouble
in interface org.jboss.netty.buffer.ChannelBuffer
public void setBytes(int index, org.jboss.netty.buffer.ChannelBuffer src)
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void setBytes(int index, org.jboss.netty.buffer.ChannelBuffer src, int length)
setBytes
in interface org.jboss.netty.buffer.ChannelBuffer
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)
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 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 void setZero(int index, int length)
setZero
in interface org.jboss.netty.buffer.ChannelBuffer
public byte readByte()
readByte
in interface org.jboss.netty.buffer.ChannelBuffer
public short readUnsignedByte()
readUnsignedByte
in interface org.jboss.netty.buffer.ChannelBuffer
public short readShort()
readShort
in interface org.jboss.netty.buffer.ChannelBuffer
public int readUnsignedShort()
readUnsignedShort
in interface org.jboss.netty.buffer.ChannelBuffer
public int readMedium()
readMedium
in interface org.jboss.netty.buffer.ChannelBuffer
public int readUnsignedMedium()
readUnsignedMedium
in interface org.jboss.netty.buffer.ChannelBuffer
public int readInt()
readInt
in interface org.jboss.netty.buffer.ChannelBuffer
public long readUnsignedInt()
readUnsignedInt
in interface org.jboss.netty.buffer.ChannelBuffer
public long readLong()
readLong
in interface org.jboss.netty.buffer.ChannelBuffer
public char readChar()
readChar
in interface org.jboss.netty.buffer.ChannelBuffer
public float readFloat()
readFloat
in interface org.jboss.netty.buffer.ChannelBuffer
public double readDouble()
readDouble
in interface org.jboss.netty.buffer.ChannelBuffer
public 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.ChannelBuffer
public 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.ChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(org.jboss.netty.buffer.ChannelBuffer dst, int dstIndex, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(byte[] dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(byte[] dst, int dstIndex, int length)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(ByteBuffer dst)
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void readBytes(OutputStream out, int length) throws IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public int readBytes(GatheringByteChannel out, int length) throws IOException
readBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public 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.ChannelBuffer
public void writeByte(int value)
writeByte
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeShort(int value)
writeShort
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeMedium(int value)
writeMedium
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeInt(int value)
writeInt
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeLong(long value)
writeLong
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeChar(int value)
writeChar
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeFloat(float value)
writeFloat
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeDouble(double value)
writeDouble
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(org.jboss.netty.buffer.ChannelBuffer src)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(org.jboss.netty.buffer.ChannelBuffer src, int length)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(org.jboss.netty.buffer.ChannelBuffer src, int srcIndex, int length)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(byte[] src)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(byte[] src, int srcIndex, int length)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public void writeBytes(ByteBuffer src)
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
public int writeBytes(InputStream in, int length) throws IOException
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public int writeBytes(ScatteringByteChannel in, int length) throws IOException
writeBytes
in interface org.jboss.netty.buffer.ChannelBuffer
IOException
public void writeZero(int length)
writeZero
in interface org.jboss.netty.buffer.ChannelBuffer
public int indexOf(int fromIndex, int toIndex, byte value)
indexOf
in interface org.jboss.netty.buffer.ChannelBuffer
public int indexOf(int fromIndex, int toIndex, org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
indexOf
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(byte value)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(int length, byte value)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(int length, org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(int index, int length, byte value)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public int bytesBefore(int index, int length, org.jboss.netty.buffer.ChannelBufferIndexFinder indexFinder)
bytesBefore
in interface org.jboss.netty.buffer.ChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer copy()
copy
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()
slice
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 org.jboss.netty.buffer.ChannelBuffer duplicate()
duplicate
in interface org.jboss.netty.buffer.ChannelBuffer
public ByteBuffer toByteBuffer()
toByteBuffer
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()
toByteBuffers
in interface org.jboss.netty.buffer.ChannelBuffer
public ByteBuffer[] toByteBuffers(int index, int length)
toByteBuffers
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 String toString(Charset charset)
toString
in interface org.jboss.netty.buffer.ChannelBuffer
public 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.ChannelBuffer
public int compareTo(org.jboss.netty.buffer.ChannelBuffer buffer)
compareTo
in interface Comparable<org.jboss.netty.buffer.ChannelBuffer>
compareTo
in interface org.jboss.netty.buffer.ChannelBuffer
Copyright © 2015. All rights reserved.