Class 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 Details

    • PRINTABLE_INDEX_END

      private static final int PRINTABLE_INDEX_END
      The starting ASCII printable character.
      See Also:
    • PRINTABLE_INDEX_START

      private static final int PRINTABLE_INDEX_START
      The ending ASCII printable character.
      See Also:
    • 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 Map<CharSequence,CharSequence> JUP_CHARS_ESCAPE
      Characters that need to be escaped when wring a properties file.
  • Constructor Details

    • JupPropertiesWriter

      public JupPropertiesWriter(Writer writer, ListDelimiterHandler delHandler, boolean escapeUnicode)
      Creates a new instance of JupPropertiesWriter.
      Parameters:
      writer - a Writer object providing the underlying stream
      delHandler - the delimiter handler for dealing with properties with multiple values
      escapeUnicode - whether Unicode characters should be escaped using Unicode escapes