Enum Files.FileType

java.lang.Object
java.lang.Enum<Files.FileType>
net.hydromatic.morel.eval.Files.FileType
All Implemented Interfaces:
Serializable, Comparable<Files.FileType>, java.lang.constant.Constable
Enclosing class:
Files

static enum Files.FileType extends Enum<Files.FileType>
Describes a type of file that can be read by this reader. Each file has a way to deduce the schema (set of field names and types) and to parse the file into a set of records.
  • Enum Constant Details

  • Field Details

    • INSTANCES

      static final List<Files.FileType> INSTANCES
      The non-trivial file types.
    • suffix

      final String suffix
    • list

      final boolean list
      Whether this file is a list of records.
  • Constructor Details

    • FileType

      private FileType(String suffix, boolean list)
  • Method Details

    • values

      public static Files.FileType[] 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 Files.FileType 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
    • open

      BufferedReader open(File file) throws IOException
      Throws:
      IOException
    • deduceFields

      Throws:
      IOException