Package com.okta.sdk.impl.config
Class DefaultPropertiesParser
java.lang.Object
com.okta.sdk.impl.config.DefaultPropertiesParser
- All Implemented Interfaces:
 PropertiesParser
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanisContinued(String line) Parses the specified.propertiesresource and returns a map of the parsed properties or an empty map if no properties were found.Parses the specified.properties-formatted String and returns a map of the parsed properties or an empty map if no properties were found.Loads the .properties-formatted text backed by the given Scanner. 
- 
Constructor Details
- 
DefaultPropertiesParser
public DefaultPropertiesParser() 
 - 
 - 
Method Details
- 
parse
Description copied from interface:PropertiesParserParses the specified.properties-formatted String and returns a map of the parsed properties or an empty map if no properties were found.- Specified by:
 parsein interfacePropertiesParser- Parameters:
 source- the String to parse- Returns:
 - a map of the parsed properties or an empty map if no properties were found.
 
 - 
parse
Description copied from interface:PropertiesParserParses the specified.propertiesresource and returns a map of the parsed properties or an empty map if no properties were found.- Specified by:
 parsein interfacePropertiesParser- Parameters:
 resource- the resource to parse.- Returns:
 - a map of the parsed properties or an empty map if no properties were found.
 - Throws:
 IOException- if unable to obtain the resource'sinputStream.
 - 
parse
Loads the .properties-formatted text backed by the given Scanner. This implementation will close the scanner after it has finished loading.- Specified by:
 parsein interfacePropertiesParser- Parameters:
 scanner- theScannerfrom which to read the .properties-formatted text- Returns:
 - a map of the parsed properties or an empty map if no properties were found.
 
 - 
isContinued
 
 -