Class StringUtilities


  • public class StringUtilities
    extends Object
    Escapes strings into and out of a format where they only contain printable characters. Need to duplicate escape / unescape of strings as we have in C++ for java version of system states.
    Author:
    Haakon Humberset
    • Constructor Detail

      • StringUtilities

        public StringUtilities()
    • Method Detail

      • escape

        public static String escape​(String source,
                                    char delimiter)
        Escapes strings into a format with only printable ASCII characters.
        Parameters:
        source - the string to escape
        delimiter - escape this character too, even if it is printable
        Returns:
        the escaped string