类 NettyBackedChannelBuffer
- java.lang.Object
-
- org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer
-
- 所有已实现的接口:
Comparable<ChannelBuffer>,ChannelBuffer
public class NettyBackedChannelBuffer extends Object implements ChannelBuffer
-
-
构造器概要
构造器 构造器 说明 NettyBackedChannelBuffer(io.netty.buffer.ByteBuf buffer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]array()intarrayOffset()intcapacity()voidclear()intcompareTo(ChannelBuffer o)ChannelBuffercopy()ChannelBuffercopy(int index, int length)voiddiscardReadBytes()voidensureWritableBytes(int writableBytes)ChannelBufferFactoryfactory()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()voidmarkReaderIndex()voidmarkWriterIndex()booleanreadable()intreadableBytes()bytereadByte()voidreadBytes(byte[] dst)voidreadBytes(byte[] dst, int dstIndex, int length)ChannelBufferreadBytes(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)intreaderIndex()voidreaderIndex(int readerIndex)voidresetReaderIndex()voidresetWriterIndex()voidsetByte(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)ByteBuffertoByteBuffer()ByteBuffertoByteBuffer(int index, int length)booleanwritable()intwritableBytes()voidwriteByte(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)intwriterIndex()voidwriterIndex(int writerIndex)-
从接口继承的方法 org.apache.dubbo.remoting.buffer.ChannelBuffer
equals
-
-
-
-
方法详细资料
-
capacity
public int capacity()
- 指定者:
capacity在接口中ChannelBuffer
-
copy
public ChannelBuffer copy(int index, int length)
- 指定者:
copy在接口中ChannelBuffer
-
factory
public ChannelBufferFactory factory()
- 指定者:
factory在接口中ChannelBuffer
-
getByte
public byte getByte(int index)
- 指定者:
getByte在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, byte[] dst, int dstIndex, int length)- 指定者:
getBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, ByteBuffer dst)- 指定者:
getBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, ChannelBuffer dst, int dstIndex, int length)- 指定者:
getBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, OutputStream dst, int length) throws IOException- 指定者:
getBytes在接口中ChannelBuffer- 抛出:
IOException
-
isDirect
public boolean isDirect()
- 指定者:
isDirect在接口中ChannelBuffer
-
setByte
public void setByte(int index, int value)- 指定者:
setByte在接口中ChannelBuffer
-
setBytes
public void setBytes(int index, byte[] src, int srcIndex, int length)- 指定者:
setBytes在接口中ChannelBuffer
-
setBytes
public void setBytes(int index, ByteBuffer src)- 指定者:
setBytes在接口中ChannelBuffer
-
setBytes
public void setBytes(int index, ChannelBuffer src, int srcIndex, int length)- 指定者:
setBytes在接口中ChannelBuffer
-
setBytes
public int setBytes(int index, InputStream src, int length) throws IOException- 指定者:
setBytes在接口中ChannelBuffer- 抛出:
IOException
-
toByteBuffer
public ByteBuffer toByteBuffer(int index, int length)
- 指定者:
toByteBuffer在接口中ChannelBuffer
-
array
public byte[] array()
- 指定者:
array在接口中ChannelBuffer
-
hasArray
public boolean hasArray()
- 指定者:
hasArray在接口中ChannelBuffer
-
arrayOffset
public int arrayOffset()
- 指定者:
arrayOffset在接口中ChannelBuffer
-
clear
public void clear()
- 指定者:
clear在接口中ChannelBuffer
-
copy
public ChannelBuffer copy()
- 指定者:
copy在接口中ChannelBuffer
-
discardReadBytes
public void discardReadBytes()
- 指定者:
discardReadBytes在接口中ChannelBuffer
-
ensureWritableBytes
public void ensureWritableBytes(int writableBytes)
- 指定者:
ensureWritableBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, byte[] dst)- 指定者:
getBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, ChannelBuffer dst)- 指定者:
getBytes在接口中ChannelBuffer
-
getBytes
public void getBytes(int index, ChannelBuffer dst, int length)- 指定者:
getBytes在接口中ChannelBuffer
-
markReaderIndex
public void markReaderIndex()
- 指定者:
markReaderIndex在接口中ChannelBuffer
-
markWriterIndex
public void markWriterIndex()
- 指定者:
markWriterIndex在接口中ChannelBuffer
-
readable
public boolean readable()
- 指定者:
readable在接口中ChannelBuffer
-
readableBytes
public int readableBytes()
- 指定者:
readableBytes在接口中ChannelBuffer
-
readByte
public byte readByte()
- 指定者:
readByte在接口中ChannelBuffer
-
readBytes
public void readBytes(byte[] dst)
- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public void readBytes(byte[] dst, int dstIndex, int length)- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public void readBytes(ByteBuffer dst)
- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public void readBytes(ChannelBuffer dst)
- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public void readBytes(ChannelBuffer dst, int length)
- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public void readBytes(ChannelBuffer dst, int dstIndex, int length)
- 指定者:
readBytes在接口中ChannelBuffer
-
readBytes
public ChannelBuffer readBytes(int length)
- 指定者:
readBytes在接口中ChannelBuffer
-
resetReaderIndex
public void resetReaderIndex()
- 指定者:
resetReaderIndex在接口中ChannelBuffer
-
resetWriterIndex
public void resetWriterIndex()
- 指定者:
resetWriterIndex在接口中ChannelBuffer
-
readerIndex
public int readerIndex()
- 指定者:
readerIndex在接口中ChannelBuffer
-
readerIndex
public void readerIndex(int readerIndex)
- 指定者:
readerIndex在接口中ChannelBuffer
-
readBytes
public void readBytes(OutputStream dst, int length) throws IOException
- 指定者:
readBytes在接口中ChannelBuffer- 抛出:
IOException
-
setBytes
public void setBytes(int index, byte[] src)- 指定者:
setBytes在接口中ChannelBuffer
-
setBytes
public void setBytes(int index, ChannelBuffer src)- 指定者:
setBytes在接口中ChannelBuffer
-
setBytes
public void setBytes(int index, ChannelBuffer src, int length)- 指定者:
setBytes在接口中ChannelBuffer
-
setIndex
public void setIndex(int readerIndex, int writerIndex)- 指定者:
setIndex在接口中ChannelBuffer
-
skipBytes
public void skipBytes(int length)
- 指定者:
skipBytes在接口中ChannelBuffer
-
toByteBuffer
public ByteBuffer toByteBuffer()
- 指定者:
toByteBuffer在接口中ChannelBuffer
-
writable
public boolean writable()
- 指定者:
writable在接口中ChannelBuffer
-
writableBytes
public int writableBytes()
- 指定者:
writableBytes在接口中ChannelBuffer
-
writeByte
public void writeByte(int value)
- 指定者:
writeByte在接口中ChannelBuffer
-
writeBytes
public void writeBytes(byte[] src)
- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public void writeBytes(byte[] src, int index, int length)- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public void writeBytes(ByteBuffer src)
- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public void writeBytes(ChannelBuffer src)
- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public void writeBytes(ChannelBuffer src, int length)
- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public void writeBytes(ChannelBuffer src, int srcIndex, int length)
- 指定者:
writeBytes在接口中ChannelBuffer
-
writeBytes
public int writeBytes(InputStream src, int length) throws IOException
- 指定者:
writeBytes在接口中ChannelBuffer- 抛出:
IOException
-
writerIndex
public int writerIndex()
- 指定者:
writerIndex在接口中ChannelBuffer
-
writerIndex
public void writerIndex(int writerIndex)
- 指定者:
writerIndex在接口中ChannelBuffer
-
compareTo
public int compareTo(ChannelBuffer o)
- 指定者:
compareTo在接口中Comparable<ChannelBuffer>
-
-