Interface AttributeEncoder

    • Method Detail

      • getCodecType

        int getCodecType()

        Return the unique code for the type that this encoder encodes. This must be the ordinal() of the corresponding CodecType enum value.

        This is only used on Encoders for element attributes, because attributes need to be read in with no intervention, so this ID is used to look up the correct decoder. For element bodies, the handler has the chance to instantiate the correct decoder before parsing, so no type code is needed.