Class AmqpWritableBuffer

java.lang.Object
org.apache.activemq.transport.amqp.message.AmqpWritableBuffer
All Implemented Interfaces:
org.apache.qpid.proton.codec.WritableBuffer

public class AmqpWritableBuffer extends Object implements org.apache.qpid.proton.codec.WritableBuffer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.WritableBuffer

    org.apache.qpid.proton.codec.WritableBuffer.ByteBufferWrapper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new WritableBuffer with default capacity.
    AmqpWritableBuffer(int capacity)
    Create a new WritableBuffer with the given capacity.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
     
    int
     
    boolean
     
    int
     
    int
     
    void
    position(int position)
     
    void
    put(byte b)
     
    void
    put(byte[] src, int offset, int length)
     
    void
    put(ByteBuffer payload)
     
    void
    put(org.apache.qpid.proton.codec.ReadableBuffer src)
     
    void
    putDouble(double value)
     
    void
    putFloat(float value)
     
    void
    putInt(int value)
     
    void
    putLong(long value)
     
    void
    putShort(short value)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.qpid.proton.codec.WritableBuffer

    ensureRemaining, put
  • Field Details

  • Constructor Details

    • AmqpWritableBuffer

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

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

    • 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