Enum BomHeader

java.lang.Object
java.lang.Enum<BomHeader>
de.siegmar.fastcsv.reader.BomHeader
All Implemented Interfaces:
Serializable, Comparable<BomHeader>, java.lang.constant.Constable

enum BomHeader extends Enum<BomHeader>
  • Enum Constant Details

    • UTF_8

      public static final BomHeader UTF_8
    • UTF_16_BE

      public static final BomHeader UTF_16_BE
    • UTF_16_LE

      public static final BomHeader UTF_16_LE
    • UTF_32_BE

      public static final BomHeader UTF_32_BE
    • UTF_32_LE

      public static final BomHeader UTF_32_LE
  • Field Details

    • charset

      private final Charset charset
    • length

      private final int length
  • Constructor Details

    • BomHeader

      private BomHeader(Charset charset, int length)
  • Method Details

    • values

      public static BomHeader[] 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 BomHeader 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
    • getCharset

      Charset getCharset()
    • getLength

      int getLength()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BomHeader>