Package gui
Class PropertyHelper
- java.lang.Object
-
- gui.PropertyHelper
-
public class PropertyHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ESCAPE_COMMENT
A constant defining that text should be escaped in a way which is suitable for property comments.static int
ESCAPE_KEY
A constant defining that text should be escaped in a way which is suitable for property keys.static int
ESCAPE_VALUE
A constant defining that text should be escaped in a way which is suitable for property values.
-
Constructor Summary
Constructors Constructor Description PropertyHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
saveConvert(String text, int escapeMode, PrintWriter writer)
Performs the necessary conversion of an java string into a property escaped string.
-
-
-
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
-
-
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 escapedescapeMode
- the mode that should be applied.writer
- the writer that should receive the content.
-
-