Class BaseCodec<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Set<java.lang.String> TAGS
      Set of known tag identifiers for Fauna's tagged data format.
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseCodec()  
    • Field Detail

      • TAGS

        public static final java.util.Set<java.lang.String> TAGS
        Set of known tag identifiers for Fauna's tagged data format.
    • Constructor Detail

      • BaseCodec

        public BaseCodec()
    • Method Detail

      • unexpectedTokenExceptionMessage

        protected java.lang.String unexpectedTokenExceptionMessage​(FaunaTokenType token)
        Returns a formatted message indicating an unexpected token encountered during decoding.
        Parameters:
        token - the unexpected token type encountered.
        Returns:
        a formatted message string.
      • unsupportedTypeDecodingMessage

        protected java.lang.String unsupportedTypeDecodingMessage​(FaunaType type,
                                                                  FaunaType[] supportedTypes)
        Returns a formatted message indicating an unsupported Fauna type encountered during decoding.
        Parameters:
        type - the Fauna type encountered.
        supportedTypes - an array of supported Fauna types for this codec.
        Returns:
        a formatted message string.
      • unexpectedTypeWhileDecoding

        protected java.lang.String unexpectedTypeWhileDecoding​(java.lang.reflect.Type type)
        Returns a formatted message indicating an unexpected Java type encountered during decoding.
        Parameters:
        type - the unexpected Java type encountered.
        Returns:
        a formatted message string.
      • unsupportedTypeMessage

        protected java.lang.String unsupportedTypeMessage​(java.lang.reflect.Type type)
        Returns a formatted message indicating an unsupported Java type encountered during encoding.
        Parameters:
        type - the unsupported Java type encountered.
        Returns:
        a formatted message string.