Enum LineEnding

java.lang.Object
java.lang.Enum<LineEnding>
au.com.acegi.xmlformat.LineEnding
All Implemented Interfaces:
Serializable, Comparable<LineEnding>

public enum LineEnding extends Enum<LineEnding>
Valid line endings for use by AbstractXmlPlugin.lineEnding.
  • Enum Constant Details

    • SYSTEM

      public static final LineEnding SYSTEM
      Use the system default line ending.
    • LF

      public static final LineEnding LF
      Use the newline character. Typical on Unix and Unix-like systems.
    • CRLF

      public static final LineEnding CRLF
      Use the carriage return and new line characters. Typical on Windows.
    • CR

      public static final LineEnding CR
      Use the carriage return character.
  • Method Details

    • values

      public static LineEnding[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LineEnding valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getChars

      public String getChars()
      Gets the chars.
      Returns:
      the chars