public enum FileType extends Enum<FileType>
| Enum Constant and Description |
|---|
ANY |
BOOT |
CONFIG |
SEED |
STATE |
TRACE |
WEATHER |
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTORY_BOOT |
static String |
DIRECTORY_CONFIG |
static String |
DIRECTORY_LOG |
static String |
DIRECTORY_ROOT |
static String |
DIRECTORY_SEED |
static String |
DIRECTORY_WEATHER |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
File |
getDirectory(User user) |
File |
getFile(User user,
String name) |
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 TRACE
public static final FileType STATE
public static final FileType SEED
public static final FileType BOOT
public static final FileType CONFIG
public static final FileType WEATHER
public static final FileType ANY
public static final String DIRECTORY_ROOT
public static final String DIRECTORY_LOG
public static final String DIRECTORY_SEED
public static final String DIRECTORY_BOOT
public static final String DIRECTORY_CONFIG
public static final String DIRECTORY_WEATHER
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 final String getContentType()
Copyright © 2019 Power TAC. All rights reserved.