public enum FileType extends Enum<FileType>
Enum Constant and Description |
---|
AVRO |
AVRO_SCHEMA |
BINARY |
CSV |
FIXED_WIDTH |
HTML |
JSON |
JSON_LINES |
ORC |
PARQUET |
PDF |
TEXT |
XLS |
XLSB |
XLSX |
XML |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFileExtension() |
String |
getDisplayName() |
String |
getFileExtension() |
String |
getMimeType() |
boolean |
isBinary() |
static FileType |
lookup(String fileTypeAsString) |
static FileType |
lookupByFileExtension(String fileExtension) |
static FileType |
lookupByMimeType(String mimeType) |
static FileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileType XLSX
public static final FileType XLS
public static final FileType XLSB
public static final FileType XML
public static final FileType HTML
public static final FileType JSON
public static final FileType JSON_LINES
public static final FileType CSV
public static final FileType PDF
public static final FileType PARQUET
public static final FileType AVRO
public static final FileType AVRO_SCHEMA
public static final FileType ORC
public static final FileType BINARY
public static final FileType TEXT
public static final FileType FIXED_WIDTH
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDisplayName()
public String getMimeType()
public boolean isBinary()
public String getDefaultFileExtension()
public String getFileExtension()
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.