public enum LineEndType extends java.lang.Enum<LineEndType>
Represents the various supported line endings.
Each type is named after the most popular operating system category where it is standard. According to my research, the explicit types offered here are the only ones in use by modern operating systems.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
_label |
java.lang.String |
_lineEndStr |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static LineEndType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LineEndType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineEndType UNIX
public static final LineEndType WINDOWS
public static final LineEndType MAC
public final java.lang.String _lineEndStr
public final java.lang.String _label
public static LineEndType[] values()
for (LineEndType c : LineEndType.values()) System.out.println(c);
public static LineEndType 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 java.lang.String toString()
toString
in class java.lang.Enum<LineEndType>