public enum LineSeparator extends java.lang.Enum<LineSeparator>
枚举常量和说明 |
---|
CR
The Separator sequence CR which is '\r'.
|
CRNL
The Separator sequence CRNL which is '\r\n'.
|
DEFAULT
Use the sequence '\r\n' unless the System property
JDOMConstants.JDOM2_PROPERTY_LINE_SEPARATOR is defined, in which
case use the value specified in that property. |
DOS
The 'DOS' Separator sequence CRLF (CRNL) which is '\r\n'.
|
NL
The Separator sequence NL which is '\n'.
|
NONE
Perform no end-of-line processing.
|
SYSTEM
The system-dependent Separator sequence NL which is obtained from
System.getProperty("line.separator") . |
UNIX
The 'UNIX' Separator sequence NL which is '\n'.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
value()
The String sequence used for this Separator
|
static LineSeparator |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static LineSeparator[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LineSeparator CRNL
public static final LineSeparator NL
public static final LineSeparator CR
public static final LineSeparator DOS
public static final LineSeparator UNIX
public static final LineSeparator SYSTEM
public static final LineSeparator NONE
public static final LineSeparator DEFAULT
JDOMConstants.JDOM2_PROPERTY_LINE_SEPARATOR
is defined, in which
case use the value specified in that property. If the value in that
property matches one of the Enumeration names (e.g. SYSTEM) then use the
sequence specified in that enumeration.public static LineSeparator[] values()
for (LineSeparator c : LineSeparator.values()) System.out.println(c);
public static LineSeparator valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.lang.String value()