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.
|
LF_CR_CRLF
Matches CR, LF and CRLF line separators.
|
SYSTEM
System default line separators.
|
Modifier and Type | Method and Description |
---|---|
int |
length()
Returns length of file separator in bytes.
|
boolean |
matches(byte... bytes)
Checks that bytes is equal to the byte representation of this line separator.
|
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 LF_CR_CRLF
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–2018. All rights reserved.