Class NettyBackedChannelBuffer
java.lang.Object
org.apache.dubbo.remoting.transport.netty.NettyBackedChannelBuffer
- All Implemented Interfaces:
Comparable<ChannelBuffer>,ChannelBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]array()intintcapacity()voidclear()intcopy()copy(int index, int length) voidvoidensureWritableBytes(int writableBytes) factory()bytegetByte(int index) voidgetBytes(int index, byte[] dst) voidgetBytes(int index, byte[] dst, int dstIndex, int length) voidgetBytes(int index, OutputStream dst, int length) voidgetBytes(int index, ByteBuffer dst) voidgetBytes(int index, ChannelBuffer dst) voidgetBytes(int index, ChannelBuffer dst, int length) voidgetBytes(int index, ChannelBuffer dst, int dstIndex, int length) booleanhasArray()booleanisDirect()voidvoidorg.jboss.netty.buffer.ChannelBufferbooleanreadable()intbytereadByte()voidreadBytes(byte[] dst) voidreadBytes(byte[] dst, int dstIndex, int length) readBytes(int length) voidreadBytes(OutputStream dst, int length) voidreadBytes(ByteBuffer dst) voidreadBytes(ChannelBuffer dst) voidreadBytes(ChannelBuffer dst, int length) voidreadBytes(ChannelBuffer dst, int dstIndex, int length) intvoidreaderIndex(int readerIndex) voidvoidvoidsetByte(int index, int value) voidsetBytes(int index, byte[] src) voidsetBytes(int index, byte[] src, int srcIndex, int length) intsetBytes(int index, InputStream src, int length) voidsetBytes(int index, ByteBuffer src) voidsetBytes(int index, ChannelBuffer src) voidsetBytes(int index, ChannelBuffer src, int length) voidsetBytes(int index, ChannelBuffer src, int srcIndex, int length) voidsetIndex(int readerIndex, int writerIndex) voidskipBytes(int length) toByteBuffer(int index, int length) booleanwritable()intvoidwriteByte(int value) voidwriteBytes(byte[] src) voidwriteBytes(byte[] src, int index, int length) intwriteBytes(InputStream src, int length) voidwriteBytes(ByteBuffer src) voidwriteBytes(ChannelBuffer src) voidwriteBytes(ChannelBuffer src, int length) voidwriteBytes(ChannelBuffer src, int srcIndex, int length) intvoidwriterIndex(int writerIndex) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.buffer.ChannelBuffer
equals, release
-
Constructor Details
-
NettyBackedChannelBuffer
public NettyBackedChannelBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
-
-
Method Details
-
nettyChannelBuffer
public org.jboss.netty.buffer.ChannelBuffer nettyChannelBuffer() -
capacity
public int capacity()- Specified by:
capacityin interfaceChannelBuffer
-
copy
- Specified by:
copyin interfaceChannelBuffer
-
factory
- Specified by:
factoryin interfaceChannelBuffer
-
getByte
public byte getByte(int index) - Specified by:
getBytein interfaceChannelBuffer
-
getBytes
public void getBytes(int index, byte[] dst, int dstIndex, int length) - Specified by:
getBytesin interfaceChannelBuffer
-
getBytes
- Specified by:
getBytesin interfaceChannelBuffer
-
getBytes
- Specified by:
getBytesin interfaceChannelBuffer
-
getBytes
- Specified by:
getBytesin interfaceChannelBuffer- Throws:
IOException
-
isDirect
public boolean isDirect()- Specified by:
isDirectin interfaceChannelBuffer
-
setByte
public void setByte(int index, int value) - Specified by:
setBytein interfaceChannelBuffer
-
setBytes
public void setBytes(int index, byte[] src, int srcIndex, int length) - Specified by:
setBytesin interfaceChannelBuffer
-
setBytes
- Specified by:
setBytesin interfaceChannelBuffer
-
setBytes
- Specified by:
setBytesin interfaceChannelBuffer
-
setBytes
- Specified by:
setBytesin interfaceChannelBuffer- Throws:
IOException
-
toByteBuffer
- Specified by:
toByteBufferin interfaceChannelBuffer
-
array
public byte[] array()- Specified by:
arrayin interfaceChannelBuffer
-
hasArray
public boolean hasArray()- Specified by:
hasArrayin interfaceChannelBuffer
-
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin interfaceChannelBuffer
-
clear
public void clear()- Specified by:
clearin interfaceChannelBuffer
-
copy
- Specified by:
copyin interfaceChannelBuffer
-
discardReadBytes
public void discardReadBytes()- Specified by:
discardReadBytesin interfaceChannelBuffer
-
ensureWritableBytes
public void ensureWritableBytes(int writableBytes) - Specified by:
ensureWritableBytesin interfaceChannelBuffer
-
getBytes
public void getBytes(int index, byte[] dst) - Specified by:
getBytesin interfaceChannelBuffer
-
getBytes
- Specified by:
getBytesin interfaceChannelBuffer
-
getBytes
- Specified by:
getBytesin interfaceChannelBuffer
-
markReaderIndex
public void markReaderIndex()- Specified by:
markReaderIndexin interfaceChannelBuffer
-
markWriterIndex
public void markWriterIndex()- Specified by:
markWriterIndexin interfaceChannelBuffer
-
readable
public boolean readable()- Specified by:
readablein interfaceChannelBuffer
-
readableBytes
public int readableBytes()- Specified by:
readableBytesin interfaceChannelBuffer
-
readByte
public byte readByte()- Specified by:
readBytein interfaceChannelBuffer
-
readBytes
public void readBytes(byte[] dst) - Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
public void readBytes(byte[] dst, int dstIndex, int length) - Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer
-
resetReaderIndex
public void resetReaderIndex()- Specified by:
resetReaderIndexin interfaceChannelBuffer
-
resetWriterIndex
public void resetWriterIndex()- Specified by:
resetWriterIndexin interfaceChannelBuffer
-
readerIndex
public int readerIndex()- Specified by:
readerIndexin interfaceChannelBuffer
-
readerIndex
public void readerIndex(int readerIndex) - Specified by:
readerIndexin interfaceChannelBuffer
-
readBytes
- Specified by:
readBytesin interfaceChannelBuffer- Throws:
IOException
-
setBytes
public void setBytes(int index, byte[] src) - Specified by:
setBytesin interfaceChannelBuffer
-
setBytes
- Specified by:
setBytesin interfaceChannelBuffer
-
setBytes
- Specified by:
setBytesin interfaceChannelBuffer
-
setIndex
public void setIndex(int readerIndex, int writerIndex) - Specified by:
setIndexin interfaceChannelBuffer
-
skipBytes
public void skipBytes(int length) - Specified by:
skipBytesin interfaceChannelBuffer
-
toByteBuffer
- Specified by:
toByteBufferin interfaceChannelBuffer
-
writable
public boolean writable()- Specified by:
writablein interfaceChannelBuffer
-
writableBytes
public int writableBytes()- Specified by:
writableBytesin interfaceChannelBuffer
-
writeByte
public void writeByte(int value) - Specified by:
writeBytein interfaceChannelBuffer
-
writeBytes
public void writeBytes(byte[] src) - Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
public void writeBytes(byte[] src, int index, int length) - Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
- Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
- Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
- Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
- Specified by:
writeBytesin interfaceChannelBuffer
-
writeBytes
- Specified by:
writeBytesin interfaceChannelBuffer- Throws:
IOException
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin interfaceChannelBuffer
-
writerIndex
public void writerIndex(int writerIndex) - Specified by:
writerIndexin interfaceChannelBuffer
-
compareTo
- Specified by:
compareToin interfaceComparable<ChannelBuffer>
-