Class PropertiesConfiguration.JupPropertiesWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.apache.commons.configuration2.PropertiesConfiguration.PropertiesWriter
org.apache.commons.configuration2.PropertiesConfiguration.JupPropertiesWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- PropertiesConfiguration
public static class PropertiesConfiguration.JupPropertiesWriter
extends PropertiesConfiguration.PropertiesWriter
A
PropertiesConfiguration.PropertiesWriter
that tries to mimic the behavior of Properties
.- Since:
- 2.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.text.translate.UnicodeEscaper
A UnicodeEscaper for characters outside the ASCII printable range.private static final Map<CharSequence,
CharSequence> Characters that need to be escaped when wring a properties file.private static final int
The starting ASCII printable character.private static final int
The ending ASCII printable character.Fields inherited from class java.io.FilterWriter
out
-
Constructor Summary
ConstructorsConstructorDescriptionJupPropertiesWriter
(Writer writer, ListDelimiterHandler delHandler, boolean escapeUnicode) Creates a new instance ofJupPropertiesWriter
. -
Method Summary
Methods inherited from class org.apache.commons.configuration2.PropertiesConfiguration.PropertiesWriter
escapeKey, fetchSeparator, getCurrentSeparator, getDelimiterHandler, getGlobalSeparator, getLineSeparator, setCurrentSeparator, setGlobalSeparator, setLineSeparator, writeComment, writeln, writeProperty, writeProperty, writeProperty
-
Field Details
-
PRINTABLE_INDEX_END
private static final int PRINTABLE_INDEX_ENDThe starting ASCII printable character.- See Also:
-
PRINTABLE_INDEX_START
private static final int PRINTABLE_INDEX_STARTThe ending ASCII printable character.- See Also:
-
ESCAPER
private static final org.apache.commons.text.translate.UnicodeEscaper ESCAPERA UnicodeEscaper for characters outside the ASCII printable range. -
JUP_CHARS_ESCAPE
Characters that need to be escaped when wring a properties file.
-
-
Constructor Details
-
JupPropertiesWriter
Creates a new instance ofJupPropertiesWriter
.- Parameters:
writer
- a Writer object providing the underlying streamdelHandler
- the delimiter handler for dealing with properties with multiple valuesescapeUnicode
- whether Unicode characters should be escaped using Unicode escapes
-