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 Summary
Constructors -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty5.buffer.Buffer
copy, 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.BufferAccessor
getBoolean, readBoolean, setBoolean, writeBooleanMethods inherited from interface io.netty5.util.Resource
touch
-
Constructor Details
-
ProtonBufferToNetty5Adapter
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.netty5.util.Resource<io.netty5.buffer.Buffer>
-
send
public io.netty5.util.Send<io.netty5.buffer.Buffer> send()- Specified by:
sendin interfaceio.netty5.util.Resource<io.netty5.buffer.Buffer>
-
isAccessible
public boolean isAccessible()- Specified by:
isAccessiblein interfaceio.netty5.util.Resource<io.netty5.buffer.Buffer>
-
compact
public io.netty5.buffer.Buffer compact()- Specified by:
compactin interfaceio.netty5.buffer.Buffer
-
makeReadOnly
public io.netty5.buffer.Buffer makeReadOnly()- Specified by:
makeReadOnlyin interfaceio.netty5.buffer.Buffer
-
readOnly
public boolean readOnly()- Specified by:
readOnlyin interfaceio.netty5.buffer.Buffer
-
fill
public io.netty5.buffer.Buffer fill(byte value) - Specified by:
fillin interfaceio.netty5.buffer.Buffer
-
isDirect
public boolean isDirect()- Specified by:
isDirectin interfaceio.netty5.buffer.Buffer
-
capacity
public int capacity()- Specified by:
capacityin interfaceio.netty5.buffer.Buffer
-
implicitCapacityLimit
public io.netty5.buffer.Buffer implicitCapacityLimit(int limit) - Specified by:
implicitCapacityLimitin interfaceio.netty5.buffer.Buffer
-
implicitCapacityLimit
public int implicitCapacityLimit()- Specified by:
implicitCapacityLimitin interfaceio.netty5.buffer.Buffer
-
readerOffset
public int readerOffset()- Specified by:
readerOffsetin interfaceio.netty5.buffer.Buffer
-
readerOffset
public io.netty5.buffer.Buffer readerOffset(int offset) - Specified by:
readerOffsetin interfaceio.netty5.buffer.Buffer
-
writerOffset
public int writerOffset()- Specified by:
writerOffsetin interfaceio.netty5.buffer.Buffer
-
writerOffset
public io.netty5.buffer.Buffer writerOffset(int offset) - Specified by:
writerOffsetin interfaceio.netty5.buffer.Buffer
-
ensureWritable
public io.netty5.buffer.Buffer ensureWritable(int size, int minimumGrowth, boolean allowCompaction) - Specified by:
ensureWritablein interfaceio.netty5.buffer.Buffer
-
copyInto
public void copyInto(int srcPos, byte[] dest, int destPos, int length) - Specified by:
copyIntoin interfaceio.netty5.buffer.Buffer
-
copyInto
- Specified by:
copyIntoin interfaceio.netty5.buffer.Buffer
-
copyInto
public void copyInto(int srcPos, io.netty5.buffer.Buffer destination, int destPos, int length) - Specified by:
copyIntoin interfaceio.netty5.buffer.Buffer
-
copy
public io.netty5.buffer.Buffer copy(int offset, int length, boolean readOnly) - Specified by:
copyin interfaceio.netty5.buffer.Buffer
-
split
public io.netty5.buffer.Buffer split(int splitOffset) - Specified by:
splitin interfaceio.netty5.buffer.Buffer
-
bytesBefore
public int bytesBefore(byte needle) - Specified by:
bytesBeforein interfaceio.netty5.buffer.Buffer
-
bytesBefore
public int bytesBefore(io.netty5.buffer.Buffer needle) - Specified by:
bytesBeforein interfaceio.netty5.buffer.Buffer
-
transferTo
- Specified by:
transferToin interfaceio.netty5.buffer.Buffer- Throws:
IOException
-
transferFrom
- Specified by:
transferFromin interfaceio.netty5.buffer.Buffer- Throws:
IOException
-
transferFrom
- Specified by:
transferFromin interfaceio.netty5.buffer.Buffer- Throws:
IOException
-
openCursor
public io.netty5.buffer.ByteCursor openCursor()- Specified by:
openCursorin interfaceio.netty5.buffer.Buffer
-
openCursor
public io.netty5.buffer.ByteCursor openCursor(int fromOffset, int length) - Specified by:
openCursorin interfaceio.netty5.buffer.Buffer
-
openReverseCursor
public io.netty5.buffer.ByteCursor openReverseCursor(int fromOffset, int length) - Specified by:
openReverseCursorin interfaceio.netty5.buffer.Buffer
-
countComponents
public int countComponents()- Specified by:
countComponentsin interfaceio.netty5.buffer.Buffer
-
countReadableComponents
public int countReadableComponents()- Specified by:
countReadableComponentsin interfaceio.netty5.buffer.Buffer
-
countWritableComponents
public int countWritableComponents()- Specified by:
countWritableComponentsin interfaceio.netty5.buffer.Buffer
-
forEachComponent
public <T extends io.netty5.buffer.BufferComponent & io.netty5.buffer.ComponentIterator.Next> io.netty5.buffer.ComponentIterator<T> forEachComponent()- Specified by:
forEachComponentin interfaceio.netty5.buffer.Buffer
-
setByte
public io.netty5.buffer.Buffer setByte(int woff, byte value) - Specified by:
setBytein interfaceio.netty5.buffer.BufferAccessor
-
setUnsignedByte
public io.netty5.buffer.Buffer setUnsignedByte(int woff, int value) - Specified by:
setUnsignedBytein interfaceio.netty5.buffer.BufferAccessor
-
setChar
public io.netty5.buffer.Buffer setChar(int woff, char value) - Specified by:
setCharin interfaceio.netty5.buffer.BufferAccessor
-
setShort
public io.netty5.buffer.Buffer setShort(int woff, short value) - Specified by:
setShortin interfaceio.netty5.buffer.BufferAccessor
-
setUnsignedShort
public io.netty5.buffer.Buffer setUnsignedShort(int woff, int value) - Specified by:
setUnsignedShortin interfaceio.netty5.buffer.BufferAccessor
-
setMedium
public io.netty5.buffer.Buffer setMedium(int woff, int value) - Specified by:
setMediumin interfaceio.netty5.buffer.BufferAccessor
-
setUnsignedMedium
public io.netty5.buffer.Buffer setUnsignedMedium(int woff, int value) - Specified by:
setUnsignedMediumin interfaceio.netty5.buffer.BufferAccessor
-
setInt
public io.netty5.buffer.Buffer setInt(int woff, int value) - Specified by:
setIntin interfaceio.netty5.buffer.BufferAccessor
-
setUnsignedInt
public io.netty5.buffer.Buffer setUnsignedInt(int woff, long value) - Specified by:
setUnsignedIntin interfaceio.netty5.buffer.BufferAccessor
-
setLong
public io.netty5.buffer.Buffer setLong(int woff, long value) - Specified by:
setLongin interfaceio.netty5.buffer.BufferAccessor
-
setFloat
public io.netty5.buffer.Buffer setFloat(int woff, float value) - Specified by:
setFloatin interfaceio.netty5.buffer.BufferAccessor
-
setDouble
public io.netty5.buffer.Buffer setDouble(int woff, double value) - Specified by:
setDoublein interfaceio.netty5.buffer.BufferAccessor
-
writeByte
public io.netty5.buffer.Buffer writeByte(byte value) - Specified by:
writeBytein interfaceio.netty5.buffer.BufferAccessor
-
writeUnsignedByte
public io.netty5.buffer.Buffer writeUnsignedByte(int value) - Specified by:
writeUnsignedBytein interfaceio.netty5.buffer.BufferAccessor
-
writeShort
public io.netty5.buffer.Buffer writeShort(short value) - Specified by:
writeShortin interfaceio.netty5.buffer.BufferAccessor
-
writeUnsignedShort
public io.netty5.buffer.Buffer writeUnsignedShort(int value) - Specified by:
writeUnsignedShortin interfaceio.netty5.buffer.BufferAccessor
-
writeChar
public io.netty5.buffer.Buffer writeChar(char value) - Specified by:
writeCharin interfaceio.netty5.buffer.BufferAccessor
-
writeMedium
public io.netty5.buffer.Buffer writeMedium(int value) - Specified by:
writeMediumin interfaceio.netty5.buffer.BufferAccessor
-
writeUnsignedMedium
public io.netty5.buffer.Buffer writeUnsignedMedium(int value) - Specified by:
writeUnsignedMediumin interfaceio.netty5.buffer.BufferAccessor
-
writeInt
public io.netty5.buffer.Buffer writeInt(int value) - Specified by:
writeIntin interfaceio.netty5.buffer.BufferAccessor
-
writeUnsignedInt
public io.netty5.buffer.Buffer writeUnsignedInt(long value) - Specified by:
writeUnsignedIntin interfaceio.netty5.buffer.BufferAccessor
-
writeLong
public io.netty5.buffer.Buffer writeLong(long value) - Specified by:
writeLongin interfaceio.netty5.buffer.BufferAccessor
-
writeFloat
public io.netty5.buffer.Buffer writeFloat(float value) - Specified by:
writeFloatin interfaceio.netty5.buffer.BufferAccessor
-
writeDouble
public io.netty5.buffer.Buffer writeDouble(double value) - Specified by:
writeDoublein interfaceio.netty5.buffer.BufferAccessor
-
writeCharSequence
- Specified by:
writeCharSequencein interfaceio.netty5.buffer.Buffer
-
getByte
public byte getByte(int index) - Specified by:
getBytein interfaceio.netty5.buffer.BufferAccessor
-
getChar
public char getChar(int index) - Specified by:
getCharin interfaceio.netty5.buffer.BufferAccessor
-
getUnsignedByte
public int getUnsignedByte(int index) - Specified by:
getUnsignedBytein interfaceio.netty5.buffer.BufferAccessor
-
getUnsignedShort
public int getUnsignedShort(int index) - Specified by:
getUnsignedShortin interfaceio.netty5.buffer.BufferAccessor
-
getShort
public short getShort(int index) - Specified by:
getShortin interfaceio.netty5.buffer.BufferAccessor
-
getMedium
public int getMedium(int index) - Specified by:
getMediumin interfaceio.netty5.buffer.BufferAccessor
-
getUnsignedMedium
public int getUnsignedMedium(int index) - Specified by:
getUnsignedMediumin interfaceio.netty5.buffer.BufferAccessor
-
getInt
public int getInt(int index) - Specified by:
getIntin interfaceio.netty5.buffer.BufferAccessor
-
getUnsignedInt
public long getUnsignedInt(int index) - Specified by:
getUnsignedIntin interfaceio.netty5.buffer.BufferAccessor
-
getLong
public long getLong(int index) - Specified by:
getLongin interfaceio.netty5.buffer.BufferAccessor
-
getFloat
public float getFloat(int index) - Specified by:
getFloatin interfaceio.netty5.buffer.BufferAccessor
-
getDouble
public double getDouble(int index) - Specified by:
getDoublein interfaceio.netty5.buffer.BufferAccessor
-
readByte
public byte readByte()- Specified by:
readBytein interfaceio.netty5.buffer.BufferAccessor
-
readUnsignedByte
public int readUnsignedByte()- Specified by:
readUnsignedBytein interfaceio.netty5.buffer.BufferAccessor
-
readChar
public char readChar()- Specified by:
readCharin interfaceio.netty5.buffer.BufferAccessor
-
readShort
public short readShort()- Specified by:
readShortin interfaceio.netty5.buffer.BufferAccessor
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin interfaceio.netty5.buffer.BufferAccessor
-
readMedium
public int readMedium()- Specified by:
readMediumin interfaceio.netty5.buffer.BufferAccessor
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMediumin interfaceio.netty5.buffer.BufferAccessor
-
readInt
public int readInt()- Specified by:
readIntin interfaceio.netty5.buffer.BufferAccessor
-
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedIntin interfaceio.netty5.buffer.BufferAccessor
-
readLong
public long readLong()- Specified by:
readLongin interfaceio.netty5.buffer.BufferAccessor
-
readFloat
public float readFloat()- Specified by:
readFloatin interfaceio.netty5.buffer.BufferAccessor
-
readDouble
public double readDouble()- Specified by:
readDoublein interfaceio.netty5.buffer.BufferAccessor
-
readCharSequence
- Specified by:
readCharSequencein interfaceio.netty5.buffer.Buffer
-
equals
-
hashCode
public int hashCode()
-