Package gui

Class PropertyHelper


  • public class PropertyHelper
    extends Object
    • Field Detail

      • ESCAPE_KEY

        public static final int ESCAPE_KEY
        A constant defining that text should be escaped in a way which is suitable for property keys.
        See Also:
        Constant Field Values
      • ESCAPE_VALUE

        public static final int ESCAPE_VALUE
        A constant defining that text should be escaped in a way which is suitable for property values.
        See Also:
        Constant Field Values
      • ESCAPE_COMMENT

        public static final int ESCAPE_COMMENT
        A constant defining that text should be escaped in a way which is suitable for property comments.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertyHelper

        public PropertyHelper()
    • Method Detail

      • saveConvert

        public static void saveConvert​(String text,
                                       int escapeMode,
                                       PrintWriter writer)
        Performs the necessary conversion of an java string into a property escaped string.
        Parameters:
        text - the text to be escaped
        escapeMode - the mode that should be applied.
        writer - the writer that should receive the content.