Package io.netty.buffer
Class DuplicatedByteBuf
- java.lang.Object
- 
- io.netty.buffer.ByteBuf
- 
- io.netty.buffer.AbstractByteBuf
- 
- io.netty.buffer.AbstractDerivedByteBuf
- 
- io.netty.buffer.DuplicatedByteBuf
 
 
 
 
- 
- All Implemented Interfaces:
- ByteBufConvertible,- ReferenceCounted,- java.lang.Comparable<ByteBuf>
 
 @Deprecated public class DuplicatedByteBuf extends AbstractDerivedByteBuf Deprecated.Do not use.A derived buffer which simply forwards all data access requests to its parent. It is recommended to useByteBuf.duplicate()instead of calling the constructor explicitly.
- 
- 
Constructor SummaryConstructors Constructor Description DuplicatedByteBuf(ByteBuf buffer)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected byte_getByte(int index)Deprecated.protected int_getInt(int index)Deprecated.protected int_getIntLE(int index)Deprecated.protected long_getLong(int index)Deprecated.protected long_getLongLE(int index)Deprecated.protected short_getShort(int index)Deprecated.protected short_getShortLE(int index)Deprecated.protected int_getUnsignedMedium(int index)Deprecated.protected int_getUnsignedMediumLE(int index)Deprecated.protected void_setByte(int index, int value)Deprecated.protected void_setInt(int index, int value)Deprecated.protected void_setIntLE(int index, int value)Deprecated.protected void_setLong(int index, long value)Deprecated.protected void_setLongLE(int index, long value)Deprecated.protected void_setMedium(int index, int value)Deprecated.protected void_setMediumLE(int index, int value)Deprecated.protected void_setShort(int index, int value)Deprecated.protected void_setShortLE(int index, int value)Deprecated.ByteBufAllocatoralloc()Deprecated.Returns theByteBufAllocatorwhich created this buffer.byte[]array()Deprecated.Returns the backing byte array of this buffer.intarrayOffset()Deprecated.Returns the offset of the first byte within the backing byte array of this buffer.intcapacity()Deprecated.Returns the number of bytes (octets) this buffer can contain.ByteBufcapacity(int newCapacity)Deprecated.Adjusts the capacity of this buffer.ByteBufcopy(int index, int length)Deprecated.Returns a copy of this buffer's sub-region.intforEachByte(int index, int length, ByteProcessor processor)Deprecated.Iterates over the specified area of this buffer with the specifiedprocessorin ascending order.intforEachByteDesc(int index, int length, ByteProcessor processor)Deprecated.Iterates over the specified area of this buffer with the specifiedprocessorin descending order.bytegetByte(int index)Deprecated.Gets a byte at the specified absoluteindexin this buffer.ByteBufgetBytes(int index, byte[] dst, int dstIndex, int length)Deprecated.Transfers this buffer's data to the specified destination starting at the specified absoluteindex.ByteBufgetBytes(int index, ByteBuf dst, int dstIndex, int length)Deprecated.Transfers this buffer's data to the specified destination starting at the specified absoluteindex.ByteBufgetBytes(int index, java.io.OutputStream out, int length)Deprecated.Transfers this buffer's data to the specified stream starting at the specified absoluteindex.ByteBufgetBytes(int index, java.nio.ByteBuffer dst)Deprecated.Transfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination's position reaches its limit.intgetBytes(int index, java.nio.channels.FileChannel out, long position, int length)Deprecated.Transfers this buffer's data starting at the specified absoluteindexto the specified channel starting at the given file position.intgetBytes(int index, java.nio.channels.GatheringByteChannel out, int length)Deprecated.Transfers this buffer's data to the specified channel starting at the specified absoluteindex.intgetInt(int index)Deprecated.Gets a 32-bit integer at the specified absoluteindexin this buffer.intgetIntLE(int index)Deprecated.Gets a 32-bit integer at the specified absoluteindexin this buffer with Little Endian Byte Order.longgetLong(int index)Deprecated.Gets a 64-bit long integer at the specified absoluteindexin this buffer.longgetLongLE(int index)Deprecated.Gets a 64-bit long integer at the specified absoluteindexin this buffer in Little Endian Byte Order.shortgetShort(int index)Deprecated.Gets a 16-bit short integer at the specified absoluteindexin this buffer.shortgetShortLE(int index)Deprecated.Gets a 16-bit short integer at the specified absoluteindexin this buffer in Little Endian Byte Order.intgetUnsignedMedium(int index)Deprecated.Gets an unsigned 24-bit medium integer at the specified absoluteindexin this buffer.intgetUnsignedMediumLE(int index)Deprecated.Gets an unsigned 24-bit medium integer at the specified absoluteindexin this buffer in Little Endian Byte Order.booleanhasArray()Deprecated.Returnstrueif and only if this buffer has a backing byte array.booleanhasMemoryAddress()Deprecated.Returnstrueif and only if this buffer has a reference to the low-level memory address that points to the backing data.booleanisDirect()Deprecated.Returnstrueif and only if this buffer is backed by an NIO direct buffer.longmemoryAddress()Deprecated.Returns the low-level memory address that point to the first byte of ths backing data.intnioBufferCount()Deprecated.Returns the maximum number of NIOByteBuffers that consist this buffer.java.nio.ByteBuffer[]nioBuffers(int index, int length)Deprecated.Exposes this buffer's bytes as an NIOByteBuffer's for the specified index and length The returned buffer either share or contains the copied content of this buffer, while changing the position and limit of the returned NIO buffer does not affect the indexes and marks of this buffer.java.nio.ByteOrderorder()Deprecated.ByteBufsetByte(int index, int value)Deprecated.Sets the specified byte at the specified absoluteindexin this buffer.ByteBufsetBytes(int index, byte[] src, int srcIndex, int length)Deprecated.Transfers the specified source array's data to this buffer starting at the specified absoluteindex.ByteBufsetBytes(int index, ByteBuf src, int srcIndex, int length)Deprecated.Transfers the specified source buffer's data to this buffer starting at the specified absoluteindex.intsetBytes(int index, java.io.InputStream in, int length)Deprecated.Transfers the content of the specified source stream to this buffer starting at the specified absoluteindex.ByteBufsetBytes(int index, java.nio.ByteBuffer src)Deprecated.Transfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer's position reaches its limit.intsetBytes(int index, java.nio.channels.FileChannel in, long position, int length)Deprecated.Transfers the content of the specified source channel starting at the given file position to this buffer starting at the specified absoluteindex.intsetBytes(int index, java.nio.channels.ScatteringByteChannel in, int length)Deprecated.Transfers the content of the specified source channel to this buffer starting at the specified absoluteindex.ByteBufsetInt(int index, int value)Deprecated.Sets the specified 32-bit integer at the specified absoluteindexin this buffer.ByteBufsetIntLE(int index, int value)Deprecated.Sets the specified 32-bit integer at the specified absoluteindexin this buffer with Little Endian byte order .ByteBufsetLong(int index, long value)Deprecated.Sets the specified 64-bit long integer at the specified absoluteindexin this buffer.ByteBufsetLongLE(int index, long value)Deprecated.Sets the specified 64-bit long integer at the specified absoluteindexin this buffer in Little Endian Byte Order.ByteBufsetMedium(int index, int value)Deprecated.Sets the specified 24-bit medium integer at the specified absoluteindexin this buffer.ByteBufsetMediumLE(int index, int value)Deprecated.Sets the specified 24-bit medium integer at the specified absoluteindexin this buffer in the Little Endian Byte Order.ByteBufsetShort(int index, int value)Deprecated.Sets the specified 16-bit short integer at the specified absoluteindexin this buffer.ByteBufsetShortLE(int index, int value)Deprecated.Sets the specified 16-bit short integer at the specified absoluteindexin this buffer with the Little Endian Byte Order.ByteBufslice(int index, int length)Deprecated.Returns a slice of this buffer's sub-region.ByteBufunwrap()Deprecated.Return the underlying buffer instance if this buffer is a wrapper of another buffer.- 
Methods inherited from class io.netty.buffer.AbstractDerivedByteBufinternalNioBuffer, isContiguous, isReadOnly, nioBuffer, refCnt, release, release, retain, retain, touch, touch
 - 
Methods inherited from class io.netty.buffer.AbstractByteBufadjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkDstIndex, checkIndex, checkIndex, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByteDesc, getBoolean, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getMedium, getMediumLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, newSwappedByteBuf, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readSlice, readString, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setZero, skipBytes, slice, toString, toString, toString, trimIndicesToCapacity, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeCharSequence, writeDouble, writeFloat, writeInt, writeIntLE, writeLong, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShort, writeShortLE, writeZero
 - 
Methods inherited from class io.netty.buffer.ByteBufasByteBuf, getDoubleLE, getFloatLE, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
 
- 
 
- 
- 
- 
Constructor Detail- 
DuplicatedByteBufpublic DuplicatedByteBuf(ByteBuf buffer) Deprecated.
 
- 
 - 
Method Detail- 
unwrappublic ByteBuf unwrap() Deprecated.Description copied from class:ByteBufReturn the underlying buffer instance if this buffer is a wrapper of another buffer.
 - 
allocpublic ByteBufAllocator alloc() Deprecated.Description copied from class:ByteBufReturns theByteBufAllocatorwhich created this buffer.
 - 
order@Deprecated public java.nio.ByteOrder order() Deprecated.Description copied from class:ByteBufReturns the endianness of this buffer.
 - 
isDirectpublic boolean isDirect() Deprecated.Description copied from class:ByteBufReturnstrueif and only if this buffer is backed by an NIO direct buffer.
 - 
capacitypublic int capacity() Deprecated.Description copied from class:ByteBufReturns the number of bytes (octets) this buffer can contain.
 - 
capacitypublic ByteBuf capacity(int newCapacity) Deprecated.Description copied from class:ByteBufAdjusts the capacity of this buffer. If thenewCapacityis less than the current capacity, the content of this buffer is truncated. If thenewCapacityis greater than the current capacity, the buffer is appended with unspecified data whose length is(newCapacity - currentCapacity).
 - 
hasArraypublic boolean hasArray() Deprecated.Description copied from class:ByteBufReturnstrueif and only if this buffer has a backing byte array. If this method returns true, you can safely callByteBuf.array()andByteBuf.arrayOffset().
 - 
arraypublic byte[] array() Deprecated.Description copied from class:ByteBufReturns the backing byte array of this buffer.
 - 
arrayOffsetpublic int arrayOffset() Deprecated.Description copied from class:ByteBufReturns the offset of the first byte within the backing byte array of this buffer.- Specified by:
- arrayOffsetin class- ByteBuf
 
 - 
hasMemoryAddresspublic boolean hasMemoryAddress() Deprecated.Description copied from class:ByteBufReturnstrueif and only if this buffer has a reference to the low-level memory address that points to the backing data.- Specified by:
- hasMemoryAddressin class- ByteBuf
 
 - 
memoryAddresspublic long memoryAddress() Deprecated.Description copied from class:ByteBufReturns the low-level memory address that point to the first byte of ths backing data.- Specified by:
- memoryAddressin class- ByteBuf
 
 - 
getBytepublic byte getByte(int index) Deprecated.Description copied from class:ByteBufGets a byte at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getBytein class- AbstractByteBuf
 
 - 
_getByteprotected byte _getByte(int index) Deprecated.- Specified by:
- _getBytein class- AbstractByteBuf
 
 - 
getShortpublic short getShort(int index) Deprecated.Description copied from class:ByteBufGets a 16-bit short integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getShortin class- AbstractByteBuf
 
 - 
_getShortprotected short _getShort(int index) Deprecated.- Specified by:
- _getShortin class- AbstractByteBuf
 
 - 
getShortLEpublic short getShortLE(int index) Deprecated.Description copied from class:ByteBufGets a 16-bit short integer at the specified absoluteindexin this buffer in Little Endian Byte Order. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getShortLEin class- AbstractByteBuf
 
 - 
_getShortLEprotected short _getShortLE(int index) Deprecated.- Specified by:
- _getShortLEin class- AbstractByteBuf
 
 - 
getUnsignedMediumpublic int getUnsignedMedium(int index) Deprecated.Description copied from class:ByteBufGets an unsigned 24-bit medium integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getUnsignedMediumin class- AbstractByteBuf
 
 - 
_getUnsignedMediumprotected int _getUnsignedMedium(int index) Deprecated.- Specified by:
- _getUnsignedMediumin class- AbstractByteBuf
 
 - 
getUnsignedMediumLEpublic int getUnsignedMediumLE(int index) Deprecated.Description copied from class:ByteBufGets an unsigned 24-bit medium integer at the specified absoluteindexin this buffer in Little Endian Byte Order. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getUnsignedMediumLEin class- AbstractByteBuf
 
 - 
_getUnsignedMediumLEprotected int _getUnsignedMediumLE(int index) Deprecated.- Specified by:
- _getUnsignedMediumLEin class- AbstractByteBuf
 
 - 
getIntpublic int getInt(int index) Deprecated.Description copied from class:ByteBufGets a 32-bit integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getIntin class- AbstractByteBuf
 
 - 
_getIntprotected int _getInt(int index) Deprecated.- Specified by:
- _getIntin class- AbstractByteBuf
 
 - 
getIntLEpublic int getIntLE(int index) Deprecated.Description copied from class:ByteBufGets a 32-bit integer at the specified absoluteindexin this buffer with Little Endian Byte Order. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getIntLEin class- AbstractByteBuf
 
 - 
_getIntLEprotected int _getIntLE(int index) Deprecated.- Specified by:
- _getIntLEin class- AbstractByteBuf
 
 - 
getLongpublic long getLong(int index) Deprecated.Description copied from class:ByteBufGets a 64-bit long integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getLongin class- AbstractByteBuf
 
 - 
_getLongprotected long _getLong(int index) Deprecated.- Specified by:
- _getLongin class- AbstractByteBuf
 
 - 
getLongLEpublic long getLongLE(int index) Deprecated.Description copied from class:ByteBufGets a 64-bit long integer at the specified absoluteindexin this buffer in Little Endian Byte Order. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- getLongLEin class- AbstractByteBuf
 
 - 
_getLongLEprotected long _getLongLE(int index) Deprecated.- Specified by:
- _getLongLEin class- AbstractByteBuf
 
 - 
copypublic ByteBuf copy(int index, int length) Deprecated.Description copied from class:ByteBufReturns a copy of this buffer's sub-region. Modifying the content of the returned buffer or this buffer does not affect each other at all. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
slicepublic ByteBuf slice(int index, int length) Deprecated.Description copied from class:ByteBufReturns a slice of this buffer's sub-region. Modifying the content of the returned buffer or this buffer affects each other's content while they maintain separate indexes and marks. This method does not modifyreaderIndexorwriterIndexof this buffer.Also be aware that this method will NOT call ByteBuf.retain()and so the reference count will NOT be increased.- Overrides:
- slicein class- AbstractByteBuf
 
 - 
getBytespublic ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) Deprecated.Description copied from class:ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof both the source (i.e.this) and the destination.
 - 
getBytespublic ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length) Deprecated.Description copied from class:ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
getBytespublic ByteBuf getBytes(int index, java.nio.ByteBuffer dst) Deprecated.Description copied from class:ByteBufTransfers this buffer's data to the specified destination starting at the specified absoluteindexuntil the destination's position reaches its limit. This method does not modifyreaderIndexorwriterIndexof this buffer while the destination'spositionwill be increased.
 - 
setBytepublic ByteBuf setByte(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified byte at the specified absoluteindexin this buffer. The 24 high-order bits of the specified value are ignored. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setBytein class- AbstractByteBuf
 
 - 
_setByteprotected void _setByte(int index, int value)Deprecated.- Specified by:
- _setBytein class- AbstractByteBuf
 
 - 
setShortpublic ByteBuf setShort(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 16-bit short integer at the specified absoluteindexin this buffer. The 16 high-order bits of the specified value are ignored. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setShortin class- AbstractByteBuf
 
 - 
_setShortprotected void _setShort(int index, int value)Deprecated.- Specified by:
- _setShortin class- AbstractByteBuf
 
 - 
setShortLEpublic ByteBuf setShortLE(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 16-bit short integer at the specified absoluteindexin this buffer with the Little Endian Byte Order. The 16 high-order bits of the specified value are ignored. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setShortLEin class- AbstractByteBuf
 
 - 
_setShortLEprotected void _setShortLE(int index, int value)Deprecated.- Specified by:
- _setShortLEin class- AbstractByteBuf
 
 - 
setMediumpublic ByteBuf setMedium(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 24-bit medium integer at the specified absoluteindexin this buffer. Please note that the most significant byte is ignored in the specified value. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setMediumin class- AbstractByteBuf
 
 - 
_setMediumprotected void _setMedium(int index, int value)Deprecated.- Specified by:
- _setMediumin class- AbstractByteBuf
 
 - 
setMediumLEpublic ByteBuf setMediumLE(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 24-bit medium integer at the specified absoluteindexin this buffer in the Little Endian Byte Order. Please note that the most significant byte is ignored in the specified value. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setMediumLEin class- AbstractByteBuf
 
 - 
_setMediumLEprotected void _setMediumLE(int index, int value)Deprecated.- Specified by:
- _setMediumLEin class- AbstractByteBuf
 
 - 
setIntpublic ByteBuf setInt(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 32-bit integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setIntin class- AbstractByteBuf
 
 - 
_setIntprotected void _setInt(int index, int value)Deprecated.- Specified by:
- _setIntin class- AbstractByteBuf
 
 - 
setIntLEpublic ByteBuf setIntLE(int index, int value) Deprecated.Description copied from class:ByteBufSets the specified 32-bit integer at the specified absoluteindexin this buffer with Little Endian byte order . This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setIntLEin class- AbstractByteBuf
 
 - 
_setIntLEprotected void _setIntLE(int index, int value)Deprecated.- Specified by:
- _setIntLEin class- AbstractByteBuf
 
 - 
setLongpublic ByteBuf setLong(int index, long value) Deprecated.Description copied from class:ByteBufSets the specified 64-bit long integer at the specified absoluteindexin this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setLongin class- AbstractByteBuf
 
 - 
_setLongprotected void _setLong(int index, long value)Deprecated.- Specified by:
- _setLongin class- AbstractByteBuf
 
 - 
setLongLEpublic ByteBuf setLongLE(int index, long value) Deprecated.Description copied from class:ByteBufSets the specified 64-bit long integer at the specified absoluteindexin this buffer in Little Endian Byte Order. This method does not modifyreaderIndexorwriterIndexof this buffer.- Overrides:
- setLongLEin class- AbstractByteBuf
 
 - 
_setLongLEprotected void _setLongLE(int index, long value)Deprecated.- Specified by:
- _setLongLEin class- AbstractByteBuf
 
 - 
setBytespublic ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) Deprecated.Description copied from class:ByteBufTransfers the specified source array's data to this buffer starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
setBytespublic ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length) Deprecated.Description copied from class:ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof both the source (i.e.this) and the destination.
 - 
setBytespublic ByteBuf setBytes(int index, java.nio.ByteBuffer src) Deprecated.Description copied from class:ByteBufTransfers the specified source buffer's data to this buffer starting at the specified absoluteindexuntil the source buffer's position reaches its limit. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
getBytespublic ByteBuf getBytes(int index, java.io.OutputStream out, int length) throws java.io.IOException Deprecated.Description copied from class:ByteBufTransfers this buffer's data to the specified stream starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
getBytespublic int getBytes(int index, java.nio.channels.GatheringByteChannel out, int length) throws java.io.IOExceptionDeprecated.Description copied from class:ByteBufTransfers this buffer's data to the specified channel starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
getBytespublic int getBytes(int index, java.nio.channels.FileChannel out, long position, int length) throws java.io.IOExceptionDeprecated.Description copied from class:ByteBufTransfers this buffer's data starting at the specified absoluteindexto the specified channel starting at the given file position. This method does not modifyreaderIndexorwriterIndexof this buffer. This method does not modify the channel's position.- Specified by:
- getBytesin class- ByteBuf
- position- the file position at which the transfer is to begin
- length- the maximum number of bytes to transfer
- Returns:
- the actual number of bytes written out to the specified channel
- Throws:
- java.io.IOException- if the specified channel threw an exception during I/O
 
 - 
setBytespublic int setBytes(int index, java.io.InputStream in, int length) throws java.io.IOExceptionDeprecated.Description copied from class:ByteBufTransfers the content of the specified source stream to this buffer starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
setBytespublic int setBytes(int index, java.nio.channels.ScatteringByteChannel in, int length) throws java.io.IOExceptionDeprecated.Description copied from class:ByteBufTransfers the content of the specified source channel to this buffer starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer.
 - 
setBytespublic int setBytes(int index, java.nio.channels.FileChannel in, long position, int length) throws java.io.IOExceptionDeprecated.Description copied from class:ByteBufTransfers the content of the specified source channel starting at the given file position to this buffer starting at the specified absoluteindex. This method does not modifyreaderIndexorwriterIndexof this buffer. This method does not modify the channel's position.- Specified by:
- setBytesin class- ByteBuf
- position- the file position at which the transfer is to begin
- length- the maximum number of bytes to transfer
- Returns:
- the actual number of bytes read in from the specified channel.
         -1if the specified channel is closed or reached EOF.
- Throws:
- java.io.IOException- if the specified channel threw an exception during I/O
 
 - 
nioBufferCountpublic int nioBufferCount() Deprecated.Description copied from class:ByteBufReturns the maximum number of NIOByteBuffers that consist this buffer. Note thatByteBuf.nioBuffers()orByteBuf.nioBuffers(int, int)might return a less number ofByteBuffers.- Specified by:
- nioBufferCountin class- ByteBuf
- Returns:
- -1if this buffer has no underlying- ByteBuffer. the number of the underlying- ByteBuffers if this buffer has at least one underlying- ByteBuffer. Note that this method does not return- 0to avoid confusion.
- See Also:
- ByteBuf.nioBuffer(),- ByteBuf.nioBuffer(int, int),- ByteBuf.nioBuffers(),- ByteBuf.nioBuffers(int, int)
 
 - 
nioBufferspublic java.nio.ByteBuffer[] nioBuffers(int index, int length)Deprecated.Description copied from class:ByteBufExposes this buffer's bytes as an NIOByteBuffer's for the specified index and length The returned buffer either share or contains the copied content of this buffer, while changing the position and limit of the returned NIO buffer does not affect the indexes and marks of this buffer. This method does not modifyreaderIndexorwriterIndexof this buffer. Please note that the returned NIO buffer will not see the changes of this buffer if this buffer is a dynamic buffer and it adjusted its capacity.- Specified by:
- nioBuffersin class- ByteBuf
- See Also:
- ByteBuf.nioBufferCount(),- ByteBuf.nioBuffer(),- ByteBuf.nioBuffer(int, int)
 
 - 
forEachBytepublic int forEachByte(int index, int length, ByteProcessor processor)Deprecated.Description copied from class:ByteBufIterates over the specified area of this buffer with the specifiedprocessorin ascending order. (i.e.index,(index + 1), ..(index + length - 1))- Overrides:
- forEachBytein class- AbstractByteBuf
- Returns:
- -1if the processor iterated to or beyond the end of the specified area. The last-visited index If the- ByteProcessor.process(byte)returned- false.
 
 - 
forEachByteDescpublic int forEachByteDesc(int index, int length, ByteProcessor processor)Deprecated.Description copied from class:ByteBufIterates over the specified area of this buffer with the specifiedprocessorin descending order. (i.e.(index + length - 1),(index + length - 2), ...index)- Overrides:
- forEachByteDescin class- AbstractByteBuf
- Returns:
- -1if the processor iterated to or beyond the beginning of the specified area. The last-visited index If the- ByteProcessor.process(byte)returned- false.
 
 
- 
 
-