Enum ConfigParserFactory
java.lang.Object
java.lang.Enum<ConfigParserFactory>
org.bytemechanics.config.manager.internal.ConfigParserFactory
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigParserFactory>
,java.lang.constant.Constable
,ConfigParser
public enum ConfigParserFactory extends java.lang.Enum<ConfigParserFactory> implements ConfigParser
- Author:
- afarre
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description PROPERTIES
YAML
-
Method Summary
Modifier and Type Method Description boolean
canRead(java.lang.String _path)
java.lang.String[]
getSuffixes()
static java.util.stream.Stream<Config>
read(java.io.Reader _reader, java.net.URI _location)
static java.lang.String
validFormats()
static ConfigParserFactory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigParser
valueOf(java.net.URI _location)
Returns the enum constant of this type with the specified name.static ConfigParserFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static void
write(java.io.Writer _writer, java.net.URI _location, java.util.stream.Stream<Config> _config)
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getSuffixes
public java.lang.String[] getSuffixes() -
canRead
public boolean canRead(java.lang.String _path) -
validFormats
public static final java.lang.String validFormats() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
_location
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
read
-
write
public static void write(java.io.Writer _writer, java.net.URI _location, java.util.stream.Stream<Config> _config)
-