Class UTF8BufferType

  • All Implemented Interfaces:
    org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>, org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>

    public class UTF8BufferType
    extends Object
    implements org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>
    AMQP Type used to allow to proton-j codec to deal with UTF8Buffer types as if they were String elements.
    • Constructor Detail

      • UTF8BufferType

        public UTF8BufferType​(org.apache.qpid.proton.codec.EncoderImpl encoder,
                              org.apache.qpid.proton.codec.DecoderImpl decoder)
    • Method Detail

      • getTypeClass

        public Class<org.fusesource.hawtbuf.UTF8Buffer> getTypeClass()
        Specified by:
        getTypeClass in interface org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>
      • getEncoding

        public org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer> getEncoding​(org.fusesource.hawtbuf.UTF8Buffer value)
        Specified by:
        getEncoding in interface org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>
        Specified by:
        getEncoding in interface org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>
      • getCanonicalEncoding

        public org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer> getCanonicalEncoding()
        Specified by:
        getCanonicalEncoding in interface org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>
        Specified by:
        getCanonicalEncoding in interface org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>
      • getAllEncodings

        public Collection<? extends org.apache.qpid.proton.codec.PrimitiveTypeEncoding<org.fusesource.hawtbuf.UTF8Buffer>> getAllEncodings()
        Specified by:
        getAllEncodings in interface org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>
        Specified by:
        getAllEncodings in interface org.apache.qpid.proton.codec.PrimitiveType<org.fusesource.hawtbuf.UTF8Buffer>
      • write

        public void write​(org.fusesource.hawtbuf.UTF8Buffer value)
        Specified by:
        write in interface org.apache.qpid.proton.codec.AMQPType<org.fusesource.hawtbuf.UTF8Buffer>