Package gui

Class PropertyHelper

java.lang.Object
gui.PropertyHelper

public class PropertyHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    saveConvert(String text, int escapeMode, PrintWriter writer)
    Performs the necessary conversion of an java string into a property escaped string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ESCAPE_KEY

      public static final int ESCAPE_KEY
      A 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_VALUE
      A 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_COMMENT
      A 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

      public static void saveConvert(String text, int escapeMode, PrintWriter writer)
      Performs the necessary conversion of an java string into a property escaped string.
      Parameters:
      text - the text to be escaped
      escapeMode - the mode that should be applied.
      writer - the writer that should receive the content.