public enum LineSeparator extends java.lang.Enum<LineSeparator>
Enum Constant and Description |
---|
CR
Apple style line separator.
|
CRLF
DOS style line separator.
|
LF
Unix style line separator.
|
LFCR
Exotic line separator.
|
UNDEFINED
Undefined line separator.
|
Modifier and Type | Method and Description |
---|---|
char[] |
getSequence()
Returns the actual character sequence used for this line separator.
|
static LineSeparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LineSeparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineSeparator UNDEFINED
public static final LineSeparator LF
public static final LineSeparator CRLF
public static final LineSeparator CR
public static final LineSeparator LFCR
public static LineSeparator[] values()
for (LineSeparator c : LineSeparator.values()) System.out.println(c);
public static LineSeparator 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 char[] getSequence()