F - the field enum this parsers usespublic class PropertiesConfigParser<F extends ConfigField> extends AbstractConfigParser<F>
Properties format.| Modifier and Type | Method and Description |
|---|---|
ParseResult<F> |
parse()
Starts parsing.
|
static <F extends ConfigField> |
parse(java.util.Properties props, F[] fields, boolean strict)
Parses a
Properties file into a ParseResult object. |
public ParseResult<F> parse()
public static <F extends ConfigField> ParseResult<F> parse(java.util.Properties props, F[] fields, boolean strict)
Properties file into a ParseResult object.F - the field enum to use for parsingprops - the props the input Properties objectfields - the fields the fields to use for parsingstrict - if true, parses in strict modejava.lang.IllegalArgumentException - if any input errors are encountered during parsing. Non-critical errors won't resolve in an exception if not parsing in strict mode.Copyright © 2017 Oracle Corp. All Rights Reserved.