public enum FileTypeDetectionMode extends Enum<FileTypeDetectionMode>
Enum Constant and Description |
---|
Content
The file type is detected only by the file content.
|
Default
The file type is detected by the file extension; if the file extension isn't recognized, the file type is detected by the file content.
|
Extension
The file type is detected only by the file extension.
|
Modifier and Type | Method and Description |
---|---|
static FileTypeDetectionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTypeDetectionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTypeDetectionMode Default
public static final FileTypeDetectionMode Extension
public static final FileTypeDetectionMode Content
public static FileTypeDetectionMode[] values()
for (FileTypeDetectionMode c : FileTypeDetectionMode.values()) System.out.println(c);
public static FileTypeDetectionMode 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 null