public class PropertyHelper extends Object
Modifier and Type | Field and 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 and Description |
---|
PropertyHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
saveConvert(String text,
int escapeMode,
PrintWriter writer)
Performs the necessary conversion of an java string into a property escaped string.
|
public static final int ESCAPE_KEY
public static final int ESCAPE_VALUE
public static final int ESCAPE_COMMENT
public static void saveConvert(String text, int escapeMode, PrintWriter writer)
text
- the text to be escapedescapeMode
- the mode that should be applied.writer
- the writer that should receive the content.