Class UnknownDescribedTypeEncoder

    • Constructor Detail

      • UnknownDescribedTypeEncoder

        public UnknownDescribedTypeEncoder()
    • Method Detail

      • isArrayType

        public boolean isArrayType()
        Specified by:
        isArrayType in interface TypeEncoder<DescribedType>
        Returns:
        true if the type handled by this encoded is an AMQP Array type.
      • writeType

        public void writeType​(ProtonBuffer buffer,
                              EncoderState state,
                              DescribedType value)
        Description copied from interface: TypeEncoder
        Write the full AMQP type data to the given byte buffer.

        This can consist of writing both a type constructor value and the bytes that make up the value of the type being written.

        Specified by:
        writeType in interface TypeEncoder<DescribedType>
        Parameters:
        buffer - The buffer to write the AMQP type to
        state - The current encoder state
        value - The value that is to be written.
      • writeArray

        public void writeArray​(ProtonBuffer buffer,
                               EncoderState state,
                               java.lang.Object[] value)
        Description copied from interface: TypeEncoder
        Write an array elements of the AMQP type to the given byte buffer.

        This method writes the full Array type definition of an array of the type this encoder manages.

        Specified by:
        writeArray in interface TypeEncoder<DescribedType>
        Parameters:
        buffer - The buffer to write the AMQP array elements to
        state - The current encoder state
        value - The array of values that is to be written.
      • writeRawArray

        public void writeRawArray​(ProtonBuffer buffer,
                                  EncoderState state,
                                  java.lang.Object[] values)
        Description copied from interface: TypeEncoder
        Write an array elements of the AMQP type to the given byte buffer.

        This method writes only the body portion of an AMQP array of this type, the array encoding, size and element count should be assumed to be managed by the caller.

        Specified by:
        writeRawArray in interface TypeEncoder<DescribedType>
        Parameters:
        buffer - The buffer to write the AMQP array elements to
        state - The current encoder state
        values - The array of values that is to be written.