Enum LineEnding

    • Enum Constant Detail

      • 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 Detail

      • values

        public static LineEnding[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LineEnding c : LineEnding.values())
            System.out.println(c);
        
        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()