public class NettyBackedChannelBuffer extends Object implements ChannelBuffer
| Constructor and Description |
|---|
NettyBackedChannelBuffer(io.netty.buffer.ByteBuf buffer) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
int |
arrayOffset() |
int |
capacity() |
void |
clear() |
int |
compareTo(ChannelBuffer o) |
ChannelBuffer |
copy() |
ChannelBuffer |
copy(int index,
int length) |
void |
discardReadBytes() |
void |
ensureWritableBytes(int writableBytes) |
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,
ChannelBuffer dst) |
void |
getBytes(int index,
ChannelBuffer dst,
int length) |
void |
getBytes(int index,
ChannelBuffer dst,
int dstIndex,
int length) |
void |
getBytes(int index,
OutputStream dst,
int length) |
boolean |
hasArray() |
boolean |
isDirect() |
void |
markReaderIndex() |
void |
markWriterIndex() |
boolean |
readable() |
int |
readableBytes() |
byte |
readByte() |
void |
readBytes(byte[] dst) |
void |
readBytes(byte[] dst,
int dstIndex,
int length) |
void |
readBytes(ByteBuffer dst) |
void |
readBytes(ChannelBuffer dst) |
void |
readBytes(ChannelBuffer dst,
int length) |
void |
readBytes(ChannelBuffer dst,
int dstIndex,
int length) |
ChannelBuffer |
readBytes(int length) |
void |
readBytes(OutputStream dst,
int length) |
int |
readerIndex() |
void |
readerIndex(int readerIndex) |
void |
release() |
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,
ChannelBuffer src) |
void |
setBytes(int index,
ChannelBuffer src,
int length) |
void |
setBytes(int index,
ChannelBuffer src,
int srcIndex,
int length) |
int |
setBytes(int index,
InputStream src,
int length) |
void |
setIndex(int readerIndex,
int writerIndex) |
void |
skipBytes(int length) |
ByteBuffer |
toByteBuffer() |
ByteBuffer |
toByteBuffer(int index,
int length) |
boolean |
writable() |
int |
writableBytes() |
void |
writeByte(int value) |
void |
writeBytes(byte[] src) |
void |
writeBytes(byte[] src,
int index,
int length) |
void |
writeBytes(ByteBuffer src) |
void |
writeBytes(ChannelBuffer src) |
void |
writeBytes(ChannelBuffer src,
int length) |
void |
writeBytes(ChannelBuffer src,
int srcIndex,
int length) |
int |
writeBytes(InputStream src,
int length) |
int |
writerIndex() |
void |
writerIndex(int writerIndex) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic NettyBackedChannelBuffer(io.netty.buffer.ByteBuf buffer)
public int capacity()
capacity in interface ChannelBufferpublic ChannelBuffer copy(int index, int length)
copy in interface ChannelBufferpublic ChannelBufferFactory factory()
factory in interface ChannelBufferpublic byte getByte(int index)
getByte in interface ChannelBufferpublic void getBytes(int index,
byte[] dst,
int dstIndex,
int length)
getBytes in interface ChannelBufferpublic void getBytes(int index,
ByteBuffer dst)
getBytes in interface ChannelBufferpublic void getBytes(int index,
ChannelBuffer dst,
int dstIndex,
int length)
getBytes in interface ChannelBufferpublic void getBytes(int index,
OutputStream dst,
int length)
throws IOException
getBytes in interface ChannelBufferIOExceptionpublic boolean isDirect()
isDirect in interface ChannelBufferpublic void setByte(int index,
int value)
setByte in interface ChannelBufferpublic void setBytes(int index,
byte[] src,
int srcIndex,
int length)
setBytes in interface ChannelBufferpublic void setBytes(int index,
ByteBuffer src)
setBytes in interface ChannelBufferpublic void setBytes(int index,
ChannelBuffer src,
int srcIndex,
int length)
setBytes in interface ChannelBufferpublic int setBytes(int index,
InputStream src,
int length)
throws IOException
setBytes in interface ChannelBufferIOExceptionpublic ByteBuffer toByteBuffer(int index, int length)
toByteBuffer in interface ChannelBufferpublic byte[] array()
array in interface ChannelBufferpublic boolean hasArray()
hasArray in interface ChannelBufferpublic int arrayOffset()
arrayOffset in interface ChannelBufferpublic void clear()
clear in interface ChannelBufferpublic ChannelBuffer copy()
copy in interface ChannelBufferpublic void discardReadBytes()
discardReadBytes in interface ChannelBufferpublic void ensureWritableBytes(int writableBytes)
ensureWritableBytes in interface ChannelBufferpublic void getBytes(int index,
byte[] dst)
getBytes in interface ChannelBufferpublic void getBytes(int index,
ChannelBuffer dst)
getBytes in interface ChannelBufferpublic void getBytes(int index,
ChannelBuffer dst,
int length)
getBytes in interface ChannelBufferpublic void markReaderIndex()
markReaderIndex in interface ChannelBufferpublic void markWriterIndex()
markWriterIndex in interface ChannelBufferpublic boolean readable()
readable in interface ChannelBufferpublic int readableBytes()
readableBytes in interface ChannelBufferpublic byte readByte()
readByte in interface ChannelBufferpublic void readBytes(byte[] dst)
readBytes in interface ChannelBufferpublic void readBytes(byte[] dst,
int dstIndex,
int length)
readBytes in interface ChannelBufferpublic void readBytes(ByteBuffer dst)
readBytes in interface ChannelBufferpublic void readBytes(ChannelBuffer dst)
readBytes in interface ChannelBufferpublic void readBytes(ChannelBuffer dst, int length)
readBytes in interface ChannelBufferpublic void readBytes(ChannelBuffer dst, int dstIndex, int length)
readBytes in interface ChannelBufferpublic ChannelBuffer readBytes(int length)
readBytes in interface ChannelBufferpublic void resetReaderIndex()
resetReaderIndex in interface ChannelBufferpublic void resetWriterIndex()
resetWriterIndex in interface ChannelBufferpublic int readerIndex()
readerIndex in interface ChannelBufferpublic void readerIndex(int readerIndex)
readerIndex in interface ChannelBufferpublic void readBytes(OutputStream dst, int length) throws IOException
readBytes in interface ChannelBufferIOExceptionpublic void setBytes(int index,
byte[] src)
setBytes in interface ChannelBufferpublic void setBytes(int index,
ChannelBuffer src)
setBytes in interface ChannelBufferpublic void setBytes(int index,
ChannelBuffer src,
int length)
setBytes in interface ChannelBufferpublic void setIndex(int readerIndex,
int writerIndex)
setIndex in interface ChannelBufferpublic void skipBytes(int length)
skipBytes in interface ChannelBufferpublic ByteBuffer toByteBuffer()
toByteBuffer in interface ChannelBufferpublic boolean writable()
writable in interface ChannelBufferpublic int writableBytes()
writableBytes in interface ChannelBufferpublic void writeByte(int value)
writeByte in interface ChannelBufferpublic void writeBytes(byte[] src)
writeBytes in interface ChannelBufferpublic void writeBytes(byte[] src,
int index,
int length)
writeBytes in interface ChannelBufferpublic void writeBytes(ByteBuffer src)
writeBytes in interface ChannelBufferpublic void writeBytes(ChannelBuffer src)
writeBytes in interface ChannelBufferpublic void writeBytes(ChannelBuffer src, int length)
writeBytes in interface ChannelBufferpublic void writeBytes(ChannelBuffer src, int srcIndex, int length)
writeBytes in interface ChannelBufferpublic int writeBytes(InputStream src, int length) throws IOException
writeBytes in interface ChannelBufferIOExceptionpublic int writerIndex()
writerIndex in interface ChannelBufferpublic void writerIndex(int writerIndex)
writerIndex in interface ChannelBufferpublic int compareTo(ChannelBuffer o)
compareTo in interface Comparable<ChannelBuffer>public void release()
release in interface ChannelBufferCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.