Enum LineReturnCharacters

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LineReturnCharacters>

    public enum LineReturnCharacters
    extends java.lang.Enum<LineReturnCharacters>
    Represents the characters used to signify the end of a CSV line.
    Since:
    2.4.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CARRIAGE_RETURN
      Specifies the carriage return characters used to indicate the end of a CSV line.
      CARRIAGE_RETURN_AND_LINE_FEED
      Specifies the carriage return and line feed characters used to indicate the end of a CSV line.
      LINE_FEED
      Specifies the line feed characters used to indicate the end of a CSV line.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()
      Returns the line returns character.
      static LineReturnCharacters parse​(java.lang.String value)
      An LineReturnCharacters enumeration parsed from the given string.
      static LineReturnCharacters valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LineReturnCharacters[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CARRIAGE_RETURN_AND_LINE_FEED

        public static final LineReturnCharacters CARRIAGE_RETURN_AND_LINE_FEED
        Specifies the carriage return and line feed characters used to indicate the end of a CSV line. This character is commonly used in the Microsoft Windows operating system.
      • LINE_FEED

        public static final LineReturnCharacters LINE_FEED
        Specifies the line feed characters used to indicate the end of a CSV line. This character is commonly used in the Unix or Mac operating systems.
      • CARRIAGE_RETURN

        public static final LineReturnCharacters CARRIAGE_RETURN
        Specifies the carriage return characters used to indicate the end of a CSV line. This character is commonly used in older Mac operating systems.
    • Method Detail

      • values

        public static LineReturnCharacters[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LineReturnCharacters c : LineReturnCharacters.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LineReturnCharacters valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public java.lang.String getValue()
        Returns the line returns character.
      • parse

        public static LineReturnCharacters parse​(java.lang.String value)
        An LineReturnCharacters enumeration parsed from the given string.