public enum LineSeparator extends Enum<LineSeparator>
Enum Constant and Description |
---|
UNIX
Unix-style line separator (
LF ). |
WINDOWS
Windows-style line separator (
CR+LF ). |
Modifier and Type | Method and Description |
---|---|
String |
getSequence()
Returns the line separator sequence.
|
static LineSeparator |
valueOf(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 UNIX
LF
).public static final LineSeparator WINDOWS
CR+LF
).public static LineSeparator[] values()
for (LineSeparator c : LineSeparator.values()) System.out.println(c);
public static LineSeparator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSequence()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.