Class ProtonBufferToNetty5Adapter
java.lang.Object
org.apache.qpid.protonj2.buffer.netty.ProtonBufferToNetty5Adapter
- All Implemented Interfaces:
- io.netty5.buffer.Buffer,- io.netty5.buffer.BufferAccessor,- io.netty5.util.Resource<io.netty5.buffer.Buffer>,- AutoCloseable
Adapts a 
ProtonBuffer instance to a Netty 5 Buffer- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbytesBefore(byte needle) intbytesBefore(io.netty5.buffer.Buffer needle) intcapacity()voidclose()io.netty5.buffer.Buffercompact()io.netty5.buffer.Buffercopy(int offset, int length, boolean readOnly) voidcopyInto(int srcPos, byte[] dest, int destPos, int length) voidcopyInto(int srcPos, io.netty5.buffer.Buffer destination, int destPos, int length) voidcopyInto(int srcPos, ByteBuffer dest, int destPos, int length) intintintio.netty5.buffer.BufferensureWritable(int size, int minimumGrowth, boolean allowCompaction) booleanio.netty5.buffer.Bufferfill(byte value) <T extends io.netty5.buffer.BufferComponent & io.netty5.buffer.ComponentIterator.Next>
 io.netty5.buffer.ComponentIterator<T>bytegetByte(int index) chargetChar(int index) doublegetDouble(int index) floatgetFloat(int index) intgetInt(int index) longgetLong(int index) intgetMedium(int index) shortgetShort(int index) intgetUnsignedByte(int index) longgetUnsignedInt(int index) intgetUnsignedMedium(int index) intgetUnsignedShort(int index) inthashCode()intio.netty5.buffer.BufferimplicitCapacityLimit(int limit) booleanbooleanisDirect()io.netty5.buffer.Bufferio.netty5.buffer.ByteCursorio.netty5.buffer.ByteCursoropenCursor(int fromOffset, int length) io.netty5.buffer.ByteCursoropenReverseCursor(int fromOffset, int length) bytereadByte()charreadChar()readCharSequence(int length, Charset charset) doubleintio.netty5.buffer.BufferreaderOffset(int offset) floatintreadInt()longreadLong()intbooleanreadOnly()shortintlongintintio.netty5.util.Send<io.netty5.buffer.Buffer>send()io.netty5.buffer.BuffersetByte(int woff, byte value) io.netty5.buffer.BuffersetChar(int woff, char value) io.netty5.buffer.BuffersetDouble(int woff, double value) io.netty5.buffer.BuffersetFloat(int woff, float value) io.netty5.buffer.BuffersetInt(int woff, int value) io.netty5.buffer.BuffersetLong(int woff, long value) io.netty5.buffer.BuffersetMedium(int woff, int value) io.netty5.buffer.BuffersetShort(int woff, short value) io.netty5.buffer.BuffersetUnsignedByte(int woff, int value) io.netty5.buffer.BuffersetUnsignedInt(int woff, long value) io.netty5.buffer.BuffersetUnsignedMedium(int woff, int value) io.netty5.buffer.BuffersetUnsignedShort(int woff, int value) io.netty5.buffer.Buffersplit(int splitOffset) inttransferFrom(FileChannel channel, long position, int length) inttransferFrom(ReadableByteChannel channel, int length) inttransferTo(WritableByteChannel channel, int length) io.netty5.buffer.BufferwriteByte(byte value) io.netty5.buffer.BufferwriteChar(char value) io.netty5.buffer.BufferwriteCharSequence(CharSequence source, Charset charset) io.netty5.buffer.BufferwriteDouble(double value) io.netty5.buffer.BufferwriteFloat(float value) io.netty5.buffer.BufferwriteInt(int value) io.netty5.buffer.BufferwriteLong(long value) io.netty5.buffer.BufferwriteMedium(int value) intio.netty5.buffer.BufferwriterOffset(int offset) io.netty5.buffer.BufferwriteShort(short value) io.netty5.buffer.BufferwriteUnsignedByte(int value) io.netty5.buffer.BufferwriteUnsignedInt(long value) io.netty5.buffer.BufferwriteUnsignedMedium(int value) io.netty5.buffer.BufferwriteUnsignedShort(int value) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty5.buffer.Buffercopy, copy, copy, ensureWritable, openReverseCursor, readableBytes, readBytes, readBytes, readSplit, resetOffsets, skipReadableBytes, skipWritableBytes, split, toString, writableBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeSplitMethods inherited from interface io.netty5.buffer.BufferAccessorgetBoolean, readBoolean, setBoolean, writeBooleanMethods inherited from interface io.netty5.util.Resourcetouch
- 
Constructor Details- 
ProtonBufferToNetty5Adapter
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- io.netty5.util.Resource<io.netty5.buffer.Buffer>
 
- 
sendpublic io.netty5.util.Send<io.netty5.buffer.Buffer> send()- Specified by:
- sendin interface- io.netty5.util.Resource<io.netty5.buffer.Buffer>
 
- 
isAccessiblepublic boolean isAccessible()- Specified by:
- isAccessiblein interface- io.netty5.util.Resource<io.netty5.buffer.Buffer>
 
- 
compactpublic io.netty5.buffer.Buffer compact()- Specified by:
- compactin interface- io.netty5.buffer.Buffer
 
- 
makeReadOnlypublic io.netty5.buffer.Buffer makeReadOnly()- Specified by:
- makeReadOnlyin interface- io.netty5.buffer.Buffer
 
- 
readOnlypublic boolean readOnly()- Specified by:
- readOnlyin interface- io.netty5.buffer.Buffer
 
- 
fillpublic io.netty5.buffer.Buffer fill(byte value) - Specified by:
- fillin interface- io.netty5.buffer.Buffer
 
- 
isDirectpublic boolean isDirect()- Specified by:
- isDirectin interface- io.netty5.buffer.Buffer
 
- 
capacitypublic int capacity()- Specified by:
- capacityin interface- io.netty5.buffer.Buffer
 
- 
implicitCapacityLimitpublic io.netty5.buffer.Buffer implicitCapacityLimit(int limit) - Specified by:
- implicitCapacityLimitin interface- io.netty5.buffer.Buffer
 
- 
implicitCapacityLimitpublic int implicitCapacityLimit()- Specified by:
- implicitCapacityLimitin interface- io.netty5.buffer.Buffer
 
- 
readerOffsetpublic int readerOffset()- Specified by:
- readerOffsetin interface- io.netty5.buffer.Buffer
 
- 
readerOffsetpublic io.netty5.buffer.Buffer readerOffset(int offset) - Specified by:
- readerOffsetin interface- io.netty5.buffer.Buffer
 
- 
writerOffsetpublic int writerOffset()- Specified by:
- writerOffsetin interface- io.netty5.buffer.Buffer
 
- 
writerOffsetpublic io.netty5.buffer.Buffer writerOffset(int offset) - Specified by:
- writerOffsetin interface- io.netty5.buffer.Buffer
 
- 
ensureWritablepublic io.netty5.buffer.Buffer ensureWritable(int size, int minimumGrowth, boolean allowCompaction) - Specified by:
- ensureWritablein interface- io.netty5.buffer.Buffer
 
- 
copyIntopublic void copyInto(int srcPos, byte[] dest, int destPos, int length) - Specified by:
- copyIntoin interface- io.netty5.buffer.Buffer
 
- 
copyInto- Specified by:
- copyIntoin interface- io.netty5.buffer.Buffer
 
- 
copyIntopublic void copyInto(int srcPos, io.netty5.buffer.Buffer destination, int destPos, int length) - Specified by:
- copyIntoin interface- io.netty5.buffer.Buffer
 
- 
copypublic io.netty5.buffer.Buffer copy(int offset, int length, boolean readOnly) - Specified by:
- copyin interface- io.netty5.buffer.Buffer
 
- 
splitpublic io.netty5.buffer.Buffer split(int splitOffset) - Specified by:
- splitin interface- io.netty5.buffer.Buffer
 
- 
bytesBeforepublic int bytesBefore(byte needle) - Specified by:
- bytesBeforein interface- io.netty5.buffer.Buffer
 
- 
bytesBeforepublic int bytesBefore(io.netty5.buffer.Buffer needle) - Specified by:
- bytesBeforein interface- io.netty5.buffer.Buffer
 
- 
transferTo- Specified by:
- transferToin interface- io.netty5.buffer.Buffer
- Throws:
- IOException
 
- 
transferFrom- Specified by:
- transferFromin interface- io.netty5.buffer.Buffer
- Throws:
- IOException
 
- 
transferFrom- Specified by:
- transferFromin interface- io.netty5.buffer.Buffer
- Throws:
- IOException
 
- 
openCursorpublic io.netty5.buffer.ByteCursor openCursor()- Specified by:
- openCursorin interface- io.netty5.buffer.Buffer
 
- 
openCursorpublic io.netty5.buffer.ByteCursor openCursor(int fromOffset, int length) - Specified by:
- openCursorin interface- io.netty5.buffer.Buffer
 
- 
openReverseCursorpublic io.netty5.buffer.ByteCursor openReverseCursor(int fromOffset, int length) - Specified by:
- openReverseCursorin interface- io.netty5.buffer.Buffer
 
- 
countComponentspublic int countComponents()- Specified by:
- countComponentsin interface- io.netty5.buffer.Buffer
 
- 
countReadableComponentspublic int countReadableComponents()- Specified by:
- countReadableComponentsin interface- io.netty5.buffer.Buffer
 
- 
countWritableComponentspublic int countWritableComponents()- Specified by:
- countWritableComponentsin interface- io.netty5.buffer.Buffer
 
- 
forEachComponentpublic <T extends io.netty5.buffer.BufferComponent & io.netty5.buffer.ComponentIterator.Next> io.netty5.buffer.ComponentIterator<T> forEachComponent()- Specified by:
- forEachComponentin interface- io.netty5.buffer.Buffer
 
- 
setBytepublic io.netty5.buffer.Buffer setByte(int woff, byte value) - Specified by:
- setBytein interface- io.netty5.buffer.BufferAccessor
 
- 
setUnsignedBytepublic io.netty5.buffer.Buffer setUnsignedByte(int woff, int value) - Specified by:
- setUnsignedBytein interface- io.netty5.buffer.BufferAccessor
 
- 
setCharpublic io.netty5.buffer.Buffer setChar(int woff, char value) - Specified by:
- setCharin interface- io.netty5.buffer.BufferAccessor
 
- 
setShortpublic io.netty5.buffer.Buffer setShort(int woff, short value) - Specified by:
- setShortin interface- io.netty5.buffer.BufferAccessor
 
- 
setUnsignedShortpublic io.netty5.buffer.Buffer setUnsignedShort(int woff, int value) - Specified by:
- setUnsignedShortin interface- io.netty5.buffer.BufferAccessor
 
- 
setMediumpublic io.netty5.buffer.Buffer setMedium(int woff, int value) - Specified by:
- setMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
setUnsignedMediumpublic io.netty5.buffer.Buffer setUnsignedMedium(int woff, int value) - Specified by:
- setUnsignedMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
setIntpublic io.netty5.buffer.Buffer setInt(int woff, int value) - Specified by:
- setIntin interface- io.netty5.buffer.BufferAccessor
 
- 
setUnsignedIntpublic io.netty5.buffer.Buffer setUnsignedInt(int woff, long value) - Specified by:
- setUnsignedIntin interface- io.netty5.buffer.BufferAccessor
 
- 
setLongpublic io.netty5.buffer.Buffer setLong(int woff, long value) - Specified by:
- setLongin interface- io.netty5.buffer.BufferAccessor
 
- 
setFloatpublic io.netty5.buffer.Buffer setFloat(int woff, float value) - Specified by:
- setFloatin interface- io.netty5.buffer.BufferAccessor
 
- 
setDoublepublic io.netty5.buffer.Buffer setDouble(int woff, double value) - Specified by:
- setDoublein interface- io.netty5.buffer.BufferAccessor
 
- 
writeBytepublic io.netty5.buffer.Buffer writeByte(byte value) - Specified by:
- writeBytein interface- io.netty5.buffer.BufferAccessor
 
- 
writeUnsignedBytepublic io.netty5.buffer.Buffer writeUnsignedByte(int value) - Specified by:
- writeUnsignedBytein interface- io.netty5.buffer.BufferAccessor
 
- 
writeShortpublic io.netty5.buffer.Buffer writeShort(short value) - Specified by:
- writeShortin interface- io.netty5.buffer.BufferAccessor
 
- 
writeUnsignedShortpublic io.netty5.buffer.Buffer writeUnsignedShort(int value) - Specified by:
- writeUnsignedShortin interface- io.netty5.buffer.BufferAccessor
 
- 
writeCharpublic io.netty5.buffer.Buffer writeChar(char value) - Specified by:
- writeCharin interface- io.netty5.buffer.BufferAccessor
 
- 
writeMediumpublic io.netty5.buffer.Buffer writeMedium(int value) - Specified by:
- writeMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
writeUnsignedMediumpublic io.netty5.buffer.Buffer writeUnsignedMedium(int value) - Specified by:
- writeUnsignedMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
writeIntpublic io.netty5.buffer.Buffer writeInt(int value) - Specified by:
- writeIntin interface- io.netty5.buffer.BufferAccessor
 
- 
writeUnsignedIntpublic io.netty5.buffer.Buffer writeUnsignedInt(long value) - Specified by:
- writeUnsignedIntin interface- io.netty5.buffer.BufferAccessor
 
- 
writeLongpublic io.netty5.buffer.Buffer writeLong(long value) - Specified by:
- writeLongin interface- io.netty5.buffer.BufferAccessor
 
- 
writeFloatpublic io.netty5.buffer.Buffer writeFloat(float value) - Specified by:
- writeFloatin interface- io.netty5.buffer.BufferAccessor
 
- 
writeDoublepublic io.netty5.buffer.Buffer writeDouble(double value) - Specified by:
- writeDoublein interface- io.netty5.buffer.BufferAccessor
 
- 
writeCharSequence- Specified by:
- writeCharSequencein interface- io.netty5.buffer.Buffer
 
- 
getBytepublic byte getByte(int index) - Specified by:
- getBytein interface- io.netty5.buffer.BufferAccessor
 
- 
getCharpublic char getChar(int index) - Specified by:
- getCharin interface- io.netty5.buffer.BufferAccessor
 
- 
getUnsignedBytepublic int getUnsignedByte(int index) - Specified by:
- getUnsignedBytein interface- io.netty5.buffer.BufferAccessor
 
- 
getUnsignedShortpublic int getUnsignedShort(int index) - Specified by:
- getUnsignedShortin interface- io.netty5.buffer.BufferAccessor
 
- 
getShortpublic short getShort(int index) - Specified by:
- getShortin interface- io.netty5.buffer.BufferAccessor
 
- 
getMediumpublic int getMedium(int index) - Specified by:
- getMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
getUnsignedMediumpublic int getUnsignedMedium(int index) - Specified by:
- getUnsignedMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
getIntpublic int getInt(int index) - Specified by:
- getIntin interface- io.netty5.buffer.BufferAccessor
 
- 
getUnsignedIntpublic long getUnsignedInt(int index) - Specified by:
- getUnsignedIntin interface- io.netty5.buffer.BufferAccessor
 
- 
getLongpublic long getLong(int index) - Specified by:
- getLongin interface- io.netty5.buffer.BufferAccessor
 
- 
getFloatpublic float getFloat(int index) - Specified by:
- getFloatin interface- io.netty5.buffer.BufferAccessor
 
- 
getDoublepublic double getDouble(int index) - Specified by:
- getDoublein interface- io.netty5.buffer.BufferAccessor
 
- 
readBytepublic byte readByte()- Specified by:
- readBytein interface- io.netty5.buffer.BufferAccessor
 
- 
readUnsignedBytepublic int readUnsignedByte()- Specified by:
- readUnsignedBytein interface- io.netty5.buffer.BufferAccessor
 
- 
readCharpublic char readChar()- Specified by:
- readCharin interface- io.netty5.buffer.BufferAccessor
 
- 
readShortpublic short readShort()- Specified by:
- readShortin interface- io.netty5.buffer.BufferAccessor
 
- 
readUnsignedShortpublic int readUnsignedShort()- Specified by:
- readUnsignedShortin interface- io.netty5.buffer.BufferAccessor
 
- 
readMediumpublic int readMedium()- Specified by:
- readMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
readUnsignedMediumpublic int readUnsignedMedium()- Specified by:
- readUnsignedMediumin interface- io.netty5.buffer.BufferAccessor
 
- 
readIntpublic int readInt()- Specified by:
- readIntin interface- io.netty5.buffer.BufferAccessor
 
- 
readUnsignedIntpublic long readUnsignedInt()- Specified by:
- readUnsignedIntin interface- io.netty5.buffer.BufferAccessor
 
- 
readLongpublic long readLong()- Specified by:
- readLongin interface- io.netty5.buffer.BufferAccessor
 
- 
readFloatpublic float readFloat()- Specified by:
- readFloatin interface- io.netty5.buffer.BufferAccessor
 
- 
readDoublepublic double readDouble()- Specified by:
- readDoublein interface- io.netty5.buffer.BufferAccessor
 
- 
readCharSequence- Specified by:
- readCharSequencein interface- io.netty5.buffer.Buffer
 
- 
equals
- 
hashCodepublic int hashCode()
 
-