Package gui
Class PropertyHelper
java.lang.Object
gui.PropertyHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A constant defining that text should be escaped in a way which is suitable for property comments.static final int
A constant defining that text should be escaped in a way which is suitable for property keys.static final int
A constant defining that text should be escaped in a way which is suitable for property values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
saveConvert
(String text, int escapeMode, PrintWriter writer) Performs the necessary conversion of an java string into a property escaped string.
-
Field Details
-
ESCAPE_KEY
public static final int ESCAPE_KEYA constant defining that text should be escaped in a way which is suitable for property keys.- See Also:
-
ESCAPE_VALUE
public static final int ESCAPE_VALUEA constant defining that text should be escaped in a way which is suitable for property values.- See Also:
-
ESCAPE_COMMENT
public static final int ESCAPE_COMMENTA constant defining that text should be escaped in a way which is suitable for property comments.- See Also:
-
-
Constructor Details
-
PropertyHelper
public PropertyHelper()
-
-
Method Details
-
saveConvert
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.
-