public enum PropertyFileType extends Enum<PropertyFileType>
| Enum Constant and Description |
|---|
PROPERTIES |
YAML |
| Modifier and Type | Method and Description |
|---|---|
static PropertyFileType |
forExtension(String extension) |
String[] |
getExtensions() |
abstract PropertyHandler<?> |
getPropertyHandler(InputStream inputStream) |
static PropertyFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyFileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyFileType PROPERTIES
public static final PropertyFileType YAML
public static PropertyFileType[] values()
for (PropertyFileType c : PropertyFileType.values()) System.out.println(c);
public static PropertyFileType 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 static PropertyFileType forExtension(String extension)
public abstract PropertyHandler<?> getPropertyHandler(InputStream inputStream) throws IOException
IOExceptionpublic String[] getExtensions()
Copyright © 2019. All rights reserved.