Package org.bzdev.io

Enum LineReader.Delimiter

java.lang.Object
java.lang.Enum<LineReader.Delimiter>
org.bzdev.io.LineReader.Delimiter
All Implemented Interfaces:
Serializable, Comparable<LineReader.Delimiter>
Enclosing class:
LineReader

public static enum LineReader.Delimiter extends Enum<LineReader.Delimiter>
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 Details

    • CRLF

      public static final LineReader.Delimiter CRLF
      A line is terminated by a carriage-return ("\r") followed by a line feed ("\n").
    • CR

      public static final LineReader.Delimiter 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

      public static final LineReader.Delimiter 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

      public static LineReader.Delimiter[] 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

      public static LineReader.Delimiter valueOf(String name)
      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 name
      NullPointerException - if the argument is null