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:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
- Enclosing class:
- PropertiesConfiguration
public static class PropertiesConfiguration.JupPropertiesWriter extends PropertiesConfiguration.PropertiesWriter
APropertiesConfiguration.PropertiesWriter
that tries to mimic the behavior ofProperties
.- Since:
- 2.4
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.text.translate.UnicodeEscaper
ESCAPER
A UnicodeEscaper for characters outside the ASCII printable range.private static java.util.Map<java.lang.CharSequence,java.lang.CharSequence>
JUP_CHARS_ESCAPE
Characters that need to be escaped when wring a properties file.private static int
PRINTABLE_INDEX_END
The starting ASCII printable character.private static int
PRINTABLE_INDEX_START
The ending ASCII printable character.
-
Constructor Summary
Constructors Constructor Description JupPropertiesWriter(java.io.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 Detail
-
PRINTABLE_INDEX_END
private static final int PRINTABLE_INDEX_END
The starting ASCII printable character.- See Also:
- Constant Field Values
-
PRINTABLE_INDEX_START
private static final int PRINTABLE_INDEX_START
The ending ASCII printable character.- See Also:
- Constant Field Values
-
ESCAPER
private static final org.apache.commons.text.translate.UnicodeEscaper ESCAPER
A UnicodeEscaper for characters outside the ASCII printable range.
-
JUP_CHARS_ESCAPE
private static final java.util.Map<java.lang.CharSequence,java.lang.CharSequence> JUP_CHARS_ESCAPE
Characters that need to be escaped when wring a properties file.
-
-
Constructor Detail
-
JupPropertiesWriter
public JupPropertiesWriter(java.io.Writer writer, ListDelimiterHandler delHandler, boolean escapeUnicode)
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
-
-