public enum LineSeparator extends Enum<LineSeparator>
Mac系统换行符:"\r" Linux系统换行符:"\n" Windows系统换行符:"\r\n"
Enum Constant and Description |
---|
LINUX
Linux系统换行符:"\n"
|
MAC
Mac系统换行符:"\r"
|
WINDOWS
Windows系统换行符:"\r\n"
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
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 MAC
public static final LineSeparator LINUX
public static final LineSeparator WINDOWS
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 getValue()
Copyright © 2024. All rights reserved.