public class DefaultPropertiesParser extends java.lang.Object implements PropertiesParser
| Constructor and Description |
|---|
DefaultPropertiesParser() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
isContinued(java.lang.String line) |
java.util.Map<java.lang.String,java.lang.String> |
parse(Resource resource)
Parses the specified
.properties resource and returns a map of the parsed properties or an
empty map if no properties were found. |
java.util.Map<java.lang.String,java.lang.String> |
parse(java.util.Scanner scanner)
Loads the .properties-formatted text backed by the given Scanner.
|
java.util.Map<java.lang.String,java.lang.String> |
parse(java.lang.String source)
Parses the specified
.properties-formatted String and returns a map of the parsed properties or an
empty map if no properties were found. |
public java.util.Map<java.lang.String,java.lang.String> parse(java.lang.String source)
PropertiesParser.properties-formatted String and returns a map of the parsed properties or an
empty map if no properties were found.parse in interface PropertiesParsersource - the String to parsepublic java.util.Map<java.lang.String,java.lang.String> parse(Resource resource) throws java.io.IOException
PropertiesParser.properties resource and returns a map of the parsed properties or an
empty map if no properties were found.parse in interface PropertiesParserresource - the resource to parse.java.io.IOException - if unable to obtain the resource's inputStream.public java.util.Map<java.lang.String,java.lang.String> parse(java.util.Scanner scanner)
parse in interface PropertiesParserscanner - the Scanner from which to read the .properties-formatted textprotected static boolean isContinued(java.lang.String line)
Copyright © 2017-2021 Okta. All Rights Reserved.