Class UTF8BufferType.LargeUTF8BufferEncoding

java.lang.Object
org.apache.activemq.transport.amqp.message.UTF8BufferType.UTF8BufferEncoding
org.apache.activemq.transport.amqp.message.UTF8BufferType.LargeUTF8BufferEncoding
All Implemented Interfaces:
org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>, org.apache.qpid.proton.codec.TypeConstructor<org.fusesource.hawtbuf.UTF8Buffer>, org.apache.qpid.proton.codec.TypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>
Enclosing class:
UTF8BufferType

public class UTF8BufferType.LargeUTF8BufferEncoding extends UTF8BufferType.UTF8BufferEncoding
  • Constructor Details

    • LargeUTF8BufferEncoding

      public LargeUTF8BufferEncoding(org.apache.qpid.proton.codec.EncoderImpl encoder, org.apache.qpid.proton.codec.DecoderImpl decoder)
  • Method Details

    • getEncodingCode

      public byte getEncodingCode()
    • getSizeBytes

      public int getSizeBytes()
      Specified by:
      getSizeBytes in class UTF8BufferType.UTF8BufferEncoding
      Returns:
      the number of bytes the size portion of the encoded value requires.
    • writeSize

      public void writeSize(org.fusesource.hawtbuf.UTF8Buffer value)
      Description copied from class: UTF8BufferType.UTF8BufferEncoding
      Write the size of the buffer using the appropriate type (byte or int) depending on the encoding type being used.
      Specified by:
      writeSize in class UTF8BufferType.UTF8BufferEncoding
      Parameters:
      value - The UTF8Buffer value that is being encoded.