Class AmqpWritableBuffer

  • All Implemented Interfaces:
    org.apache.qpid.proton.codec.WritableBuffer

    public class AmqpWritableBuffer
    extends Object
    implements org.apache.qpid.proton.codec.WritableBuffer
    • Constructor Detail

      • AmqpWritableBuffer

        public AmqpWritableBuffer()
        Creates a new WritableBuffer with default capacity.
      • AmqpWritableBuffer

        public AmqpWritableBuffer​(int capacity)
        Create a new WritableBuffer with the given capacity.
    • Method Detail

      • getArray

        public byte[] getArray()
      • getArrayLength

        public int getArrayLength()
      • put

        public void put​(byte b)
        Specified by:
        put in interface org.apache.qpid.proton.codec.WritableBuffer
      • putShort

        public void putShort​(short value)
        Specified by:
        putShort in interface org.apache.qpid.proton.codec.WritableBuffer
      • putInt

        public void putInt​(int value)
        Specified by:
        putInt in interface org.apache.qpid.proton.codec.WritableBuffer
      • putLong

        public void putLong​(long value)
        Specified by:
        putLong in interface org.apache.qpid.proton.codec.WritableBuffer
      • putFloat

        public void putFloat​(float value)
        Specified by:
        putFloat in interface org.apache.qpid.proton.codec.WritableBuffer
      • putDouble

        public void putDouble​(double value)
        Specified by:
        putDouble in interface org.apache.qpid.proton.codec.WritableBuffer
      • put

        public void put​(byte[] src,
                        int offset,
                        int length)
        Specified by:
        put in interface org.apache.qpid.proton.codec.WritableBuffer
      • hasRemaining

        public boolean hasRemaining()
        Specified by:
        hasRemaining in interface org.apache.qpid.proton.codec.WritableBuffer
      • remaining

        public int remaining()
        Specified by:
        remaining in interface org.apache.qpid.proton.codec.WritableBuffer
      • position

        public int position()
        Specified by:
        position in interface org.apache.qpid.proton.codec.WritableBuffer
      • position

        public void position​(int position)
        Specified by:
        position in interface org.apache.qpid.proton.codec.WritableBuffer
      • put

        public void put​(ByteBuffer payload)
        Specified by:
        put in interface org.apache.qpid.proton.codec.WritableBuffer
      • limit

        public int limit()
        Specified by:
        limit in interface org.apache.qpid.proton.codec.WritableBuffer
      • put

        public void put​(org.apache.qpid.proton.codec.ReadableBuffer src)
        Specified by:
        put in interface org.apache.qpid.proton.codec.WritableBuffer