Package au.com.acegi.xmlformat
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 byAbstractXmlPlugin.lineEnding
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChars()
static LineEnding
valueOf(String name)
Returns the enum constant of this type with the specified name.static LineEnding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
getChars
public String getChars()
-
-