- All Implemented Interfaces:
Serializable
,Comparable<LineReader.Delimiter>
- Enclosing class:
- LineReader
End-of-line Delimiter.
If the delimiter is set to null, all of these values are
recognized as indicating an end-of-line, which follows the
convention used by
BufferedReader
.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LineReader.Delimiter
Returns the enum constant of this type with the specified name.static LineReader.Delimiter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CRLF
A line is terminated by a carriage-return ("\r") followed by a line feed ("\n"). -
CR
A line is terminated by a carriage-return character ("\r"). The ASCII (and UTF-8) code is 015 (Octal), 13 (Decimal), or 0x0D (Hexidecimal). -
LF
A line is terminated by a new-line character ("\n"). The ASCII (and UTF-8) code is 012 (Octal), 10 (Decimal), or 0x0A (Hexidecimal).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-