Interface MapSerializerUtil.EscapeInfoProvider2

    • Method Detail

      • escape

        @Nullable
        java.lang.String escape​(char c)
        Converts character to its representation in the final string
        Parameters:
        c - character to convert
        Returns:
        character representation (without escape character) or null if conversion is not applicable to that character
      • unescape

        @Nullable
        MapSerializerUtil.UnescapeResult unescape​(@NotNull
                                                  java.lang.String str,
                                                  int startPos)
        Converts character representation to original character
        Parameters:
        str - full string
        startPos - character representation start position (the next position after escape character)
        Returns:
        unescape result (character itself with the length of its representation) or null if conversion is not applicable
      • escapeCharacter

        char escapeCharacter()
        Escape character to use before escaped characters (before character representations generated by escape(char) method)
        Returns:
        see above