public final class FileExtension extends Object
Modifier and Type | Field and Description |
---|---|
static FileExtension |
ADS
Specifies the ADS file extension.
|
static FileExtension |
CSV
Specifies the CSV file extension.
|
static FileExtension |
CSV_FLATFILE
Specifies the CSV file extension for Hyperion FLAT files.
|
static FileExtension |
EBX
Specifies the EBX file extension.
|
static FileExtension |
XLS
Specifies the XLS file extension.
|
static FileExtension |
XLSX
Specifies the XLSX file extension.
|
static FileExtension |
XML
Specifies the XML file extension.
|
static FileExtension |
ZIP
Specifies the Zip file extension.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true if the parameter file extension's value is equal to field value. |
String |
getValue()
Returns the file extension's
String value. |
int |
hashCode() |
boolean |
isADS()
Returns
true if the file extension is EBX. |
boolean |
isCSV_FLATFILE()
Returns
true if the file extension is CSV_FLATFILE. |
boolean |
isCSV()
Returns
true if the file extension is CSV. |
boolean |
isEBX()
Returns
true if the file extension is EBX. |
boolean |
isXLS()
Returns
true if the file extension is XLS. |
boolean |
isXLSX()
Returns
true if the file extension is XLSX. |
boolean |
isXML()
Returns
true if the file extension is XML. |
boolean |
isZIP()
Returns
true if the file extension is ZIP. |
static FileExtension |
parse(File file)
Returns the file extension instance that corresponds to the specified
file . |
static FileExtension |
parse(String value)
Returns the file extension instance that corresponds to the specified value.
|
String |
toString() |
public static final FileExtension XML
public static final FileExtension XLS
public static final FileExtension XLSX
public static final FileExtension CSV
public static final FileExtension CSV_FLATFILE
public static final FileExtension EBX
public static final FileExtension ADS
public static final FileExtension ZIP
public String getValue()
String
value.public static FileExtension parse(File file) throws HmfhException
file
.HmfhException
public static FileExtension parse(String value)
public boolean isXML()
true
if the file extension is XML.public boolean isXLS()
true
if the file extension is XLS.public boolean isXLSX()
true
if the file extension is XLSX.public boolean isCSV()
true
if the file extension is CSV.public boolean isCSV_FLATFILE()
true
if the file extension is CSV_FLATFILE.public boolean isEBX()
true
if the file extension is EBX.public boolean isADS()
true
if the file extension is EBX.public boolean isZIP()
true
if the file extension is ZIP.