Enum Class FileType
- All Implemented Interfaces:
Serializable,Comparable<FileType>,Constable
File formats known to DataPipeline, each with a display name, MIME type, binary flag and default file extension.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the usual file extension, without the leading dot.Returns the same value asgetDefaultFileExtension().booleanisBinary()static FileTypeReturns the type whose constant name matches, ignoring case, or null if none does.static FileTypelookupByFileExtension(String fileExtension) Returns the first type whose default extension (without a dot) matches, ignoring case, or null if none does.static FileTypelookupByMimeType(String mimeType) Returns the first type with the given MIME type, ignoring case, or null if none matches.static FileTypeReturns the enum constant of this class with the specified name.static FileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XLSX
-
XLS
-
XLSB
-
XML
-
HTML
-
JSON
-
JSON_LINES
-
CSV
-
PDF
-
DOCX
-
PARQUET
-
AVRO
-
AVRO_SCHEMA
-
ORC
-
BINARY
-
TEXT
-
FIXED_WIDTH
-
JPEG
-
PNG
-
WEBP
-
OFX
-
QFX
-
QBO
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDisplayName
-
getMimeType
-
isBinary
public boolean isBinary() -
getDefaultFileExtension
Returns the usual file extension, without the leading dot. -
getFileExtension
Returns the same value asgetDefaultFileExtension(). -
lookup
Returns the type whose constant name matches, ignoring case, or null if none does. -
lookupByMimeType
Returns the first type with the given MIME type, ignoring case, or null if none matches. -
lookupByFileExtension
Returns the first type whose default extension (without a dot) matches, ignoring case, or null if none does.
-