public enum LineSeparatorOption extends Enum<LineSeparatorOption>
NewlineAtEndOfFileCheck
Enum Constant and Description |
---|
CR
Mac-style line separators.
|
CRLF
Windows-style line separators.
|
LF
Unix-style line separators.
|
SYSTEM
System default line separators.
|
Modifier and Type | Method and Description |
---|---|
int |
length() |
boolean |
matches(byte[] bytes) |
static LineSeparatorOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineSeparatorOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineSeparatorOption CRLF
public static final LineSeparatorOption CR
public static final LineSeparatorOption LF
public static final LineSeparatorOption SYSTEM
public static LineSeparatorOption[] values()
for (LineSeparatorOption c : LineSeparatorOption.values()) System.out.println(c);
public static LineSeparatorOption 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 boolean matches(byte[] bytes)
bytes
- a bytes array to checkpublic int length()
Copyright © 2001–2015. All rights reserved.