All Implemented Interfaces:
DescribedTypeDecoder<SaslInit>, StreamDescribedTypeDecoder<SaslInit>, StreamTypeDecoder<SaslInit>, TypeDecoder<SaslInit>

public final class SaslInitTypeDecoder extends AbstractDescribedListTypeDecoder<SaslInit>
Decoder of AMQP SaslInit type values from a byte stream.
  • Field Details

  • Constructor Details

    • SaslInitTypeDecoder

      public SaslInitTypeDecoder()
  • Method Details

    • getDescriptorCode

      public UnsignedLong getDescriptorCode()
      Description copied from interface: DescribedTypeDecoder
      Returns the AMQP descriptor code for the type this decoder reads.
      Returns:
      an unsigned long descriptor code value.
    • getDescriptorSymbol

      public Symbol getDescriptorSymbol()
      Description copied from interface: DescribedTypeDecoder
      Returns the AMQP descriptor symbol for the type this decoder reads.
      Returns:
      an symbol descriptor code value.
    • getTypeClass

      public Class<SaslInit> getTypeClass()
      Description copied from interface: TypeDecoder
      Returns the Class that this decoder handles.
      Returns:
      the Class that this decoder handles
    • getMinListElements

      protected final int getMinListElements()
      Description copied from class: AbstractDescribedListTypeDecoder
      (@return the minimum number of elements that must appear in this list type}
      Specified by:
      getMinListElements in class AbstractDescribedListTypeDecoder<SaslInit>
    • getMaxListElements

      protected final int getMaxListElements()
      Description copied from class: AbstractDescribedListTypeDecoder
      Returns the maximum number of elements that may appear in this list type.
      Specified by:
      getMaxListElements in class AbstractDescribedListTypeDecoder<SaslInit>
      Returns:
      the maximum number of elements that may appear in this list type
    • readType

      protected SaslInit readType(int count, ProtonBuffer buffer, Decoder decoder, DecoderState state) throws DecodeException
      Description copied from class: AbstractDescribedListTypeDecoder
      Reads the actual type from the byte stream with the given number of encoded list elements populated
      Specified by:
      readType in class AbstractDescribedListTypeDecoder<SaslInit>
      Parameters:
      count - The number of entries encoded into the list body.
      buffer - The source of the encoded bytes to read the value from.
      decoder - The list decoder that indicates the structure of the encoded lists of elements.
      state - The decoder state that was passed at the start of decoding.
      Returns:
      a single value that is the described type this decoder reads using the given list decoder.
      Throws:
      DecodeException - if an error occurs while performing the decode.
    • readType

      protected SaslInit readType(int count, InputStream stream, StreamDecoder decoder, StreamDecoderState state) throws DecodeException
      Description copied from class: AbstractDescribedListTypeDecoder
      Reads the actual type from the byte stream with the given number of encoded list elements populated
      Specified by:
      readType in class AbstractDescribedListTypeDecoder<SaslInit>
      Parameters:
      count - The number of entries encoded into the list body.
      stream - The source of the encoded bytes to read the value from.
      decoder - The list decoder that indicates the structure of the encoded lists of elements.
      state - The decoder state that was passed at the start of decoding.
      Returns:
      a single value that is the described type this decoder reads using the given list decoder.
      Throws:
      DecodeException - if an error occurs while performing the decode.