Class AbstractDescribedMapTypeDecoder<V>

java.lang.Object
org.apache.qpid.protonj2.codec.decoders.AbstractDescribedTypeDecoder<V>
org.apache.qpid.protonj2.codec.decoders.AbstractDescribedMapTypeDecoder<V>
Type Parameters:
V - The type that this decoder handles.
All Implemented Interfaces:
DescribedTypeDecoder<V>, StreamDescribedTypeDecoder<V>, StreamTypeDecoder<V>, TypeDecoder<V>
Direct Known Subclasses:
ApplicationPropertiesTypeDecoder, DeliveryAnnotationsTypeDecoder, FooterTypeDecoder, MessageAnnotationsTypeDecoder

public abstract class AbstractDescribedMapTypeDecoder<V> extends AbstractDescribedTypeDecoder<V>
Abstract base for all List based Described Type decoders which implements the generic methods common to all the implementations.
  • Constructor Details

    • AbstractDescribedMapTypeDecoder

      public AbstractDescribedMapTypeDecoder()
  • Method Details

    • skipValue

      public final void skipValue(ProtonBuffer buffer, DecoderState state) throws DecodeException
      Description copied from interface: TypeDecoder
      Skips over the bytes that compose the type this descriptor decodes.

      Skipping values can be used when the type is not used or processed by the application doing the decoding. An example might be an AMQP message decoder that only needs to decode certain parts of the message and not others.

      Parameters:
      buffer - The buffer that contains the encoded type.
      state - The decoder state.
      Throws:
      DecodeException - if an error occurs while skipping the value.
    • skipValue

      public final void skipValue(InputStream stream, StreamDecoderState state) throws DecodeException
      Description copied from interface: StreamTypeDecoder
      Skips over the bytes that compose the type this descriptor decodes.

      Skipping values can be used when the type is not used or processed by the application doing the decoding. An example might be an AMQP message decoder that only needs to decode certain parts of the message and not others.

      Parameters:
      stream - The stream that contains the encoded type.
      state - The decoder state.
      Throws:
      DecodeException - if an error occurs while skipping the value.
    • scanMapEntries

      protected <KeyType> void scanMapEntries(ProtonBuffer buffer, DecoderState state, ScanningContext<KeyType> context, BiConsumer<KeyType,Object> matchConsumer) throws DecodeException
      Throws:
      DecodeException
    • scanMapEntries

      protected <KeyType> void scanMapEntries(InputStream stream, StreamDecoderState state, StreamScanningContext<KeyType> context, BiConsumer<KeyType,Object> matchConsumer) throws DecodeException
      Throws:
      DecodeException