java.lang.Object
java.lang.Enum<FileType>
com.northconcepts.datapipeline.foundations.file.FileType
All Implemented Interfaces:
Serializable, Comparable<FileType>, Constable

public enum FileType extends Enum<FileType>
File formats known to DataPipeline, each with a display name, MIME type, binary flag and default file extension.
  • Enum Constant Details

    • XLSX

      public static final FileType XLSX
    • XLS

      public static final FileType XLS
    • XLSB

      public static final FileType XLSB
    • XML

      public static final FileType XML
    • HTML

      public static final FileType HTML
    • JSON

      public static final FileType JSON
    • JSON_LINES

      public static final FileType JSON_LINES
    • CSV

      public static final FileType CSV
    • PDF

      public static final FileType PDF
    • DOCX

      public static final FileType DOCX
    • PARQUET

      public static final FileType PARQUET
    • AVRO

      public static final FileType AVRO
    • AVRO_SCHEMA

      public static final FileType AVRO_SCHEMA
    • ORC

      public static final FileType ORC
    • BINARY

      public static final FileType BINARY
    • TEXT

      public static final FileType TEXT
    • FIXED_WIDTH

      public static final FileType FIXED_WIDTH
    • JPEG

      public static final FileType JPEG
    • PNG

      public static final FileType PNG
    • WEBP

      public static final FileType WEBP
    • OFX

      public static final FileType OFX
    • QFX

      public static final FileType QFX
    • QBO

      public static final FileType QBO
  • Method Details

    • values

      public static FileType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
    • getMimeType

      public String getMimeType()
    • isBinary

      public boolean isBinary()
    • getDefaultFileExtension

      public String getDefaultFileExtension()
      Returns the usual file extension, without the leading dot.
    • getFileExtension

      public String getFileExtension()
      Returns the same value as getDefaultFileExtension().
    • lookup

      public static FileType lookup(String fileTypeAsString)
      Returns the type whose constant name matches, ignoring case, or null if none does.
    • lookupByMimeType

      public static FileType lookupByMimeType(String mimeType)
      Returns the first type with the given MIME type, ignoring case, or null if none matches.
    • lookupByFileExtension

      public static FileType lookupByFileExtension(String fileExtension)
      Returns the first type whose default extension (without a dot) matches, ignoring case, or null if none does.