public enum LineDelimiter extends java.lang.Enum<LineDelimiter>
| Enum Constant and Description |
|---|
CR
Carriage Return - (Mac classic).
|
CRLF
Carriage Return and Line Feed (Windows).
|
LF
Line Feed - (UNIX).
|
PLATFORM
Use current platform default (
System.lineSeparator(). |
| Modifier and Type | Method and Description |
|---|---|
static LineDelimiter |
of(java.lang.String str)
Build an enum based on the given string.
|
java.lang.String |
toString() |
static LineDelimiter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LineDelimiter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineDelimiter LF
public static final LineDelimiter CR
public static final LineDelimiter CRLF
public static final LineDelimiter PLATFORM
System.lineSeparator().public static LineDelimiter[] values()
for (LineDelimiter c : LineDelimiter.values()) System.out.println(c);
public static LineDelimiter valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static LineDelimiter of(java.lang.String str)
str - the string to convert to an enum.public java.lang.String toString()
toString in class java.lang.Enum<LineDelimiter>