jetbrains.buildServer.messages.serviceMessages
Interface MapSerializerUtil.EscapeInfoProvider2

All Known Subinterfaces:
StringUtil.EscapeInfoProvider2
Enclosing class:
MapSerializerUtil

public static interface MapSerializerUtil.EscapeInfoProvider2

String escaping info provider.


Method Summary
 java.lang.String escape(char c)
          Converts character to its representation in the final string
 char escapeCharacter()
          Escape character to use before escaped characters (before character representations generated by escape(char) method)
 MapSerializerUtil.UnescapeResult unescape(java.lang.String str, int startPos)
          Converts character representation to original character
 

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