public class FileType extends Enumeration
File type base class
Modifier and Type | Field and Description |
---|---|
static FileType |
Unknown
Unknown file type
|
Constructor and Description |
---|
FileType()
Serialization constructor
|
Modifier and Type | Method and Description |
---|---|
static FileType |
fromExtension(String fileExtension)
Gets FileType for provided fileExtension
|
static FileType |
fromFilename(String fileName)
Returns FileType for specified fileName
|
static FileType |
fromStream(InputStream inputStream)
Returns FileType for provided document stream
|
static <T extends FileType> |
getAllTypes(Class<T> typeOfT)
Returns all enumeration values.
|
static <T extends FileType> |
getAllTypes(Class<T> typeOfT,
FileType[]... excluded) |
static <T extends FileType> |
getAllTypes(Class<T> typeOfT,
FileType[] excluded) |
ConvertOptions |
getConvertOptions()
Prepared default convert options for the file type
|
String |
getDescription()
Description of the file type
|
String |
getExtension()
The file extension
|
String |
getFamily()
The file family
|
String |
getFileFormat()
The file format
|
LoadOptions |
getLoadOptions()
Prepared default load options for the source file type
|
String |
toString()
String representation
|
compareTo, equals, equals, fromDisplayName, fromValue, getAll, hashCode, op_Equality, op_Inequality
public static final FileType Unknown
Unknown file type
public final String getFileFormat()
The file format
public final String getExtension()
The file extension
public String getFamily()
public final String getDescription()
public static FileType fromFilename(String fileName)
Returns FileType for specified fileName
fileName
- The file namepublic static FileType fromExtension(String fileExtension)
fileExtension
- file extensionpublic static FileType fromStream(InputStream inputStream)
Returns FileType for provided document stream
inputStream
- TStream which will be probedpublic static <T extends FileType> List<FileType> getAllTypes(Class<T> typeOfT)
Returns all enumeration values.
T
: Enumerated object type.
public static <T extends FileType> List<FileType> getAllTypes(Class<T> typeOfT, FileType[] excluded)
public static <T extends FileType> List<FileType> getAllTypes(Class<T> typeOfT, FileType[]... excluded)
public String toString()
String representation
toString
in class Enumeration
public LoadOptions getLoadOptions()
public ConvertOptions getConvertOptions()