ConfigFactoryJvmNative

org.ekrich.config.ConfigFactoryJvmNative

ConfigFactory methods common to JVM and Native

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Inherited methods

def parseReader(reader: Reader): Config

Parses a reader into a Config instance as with parseReader(Reader, ConfigParseOptions) but always uses the default parse options.

Parses a reader into a Config instance as with parseReader(Reader, ConfigParseOptions) but always uses the default parse options.

Value parameters

reader

the reader to parse

Attributes

Returns

the parsed configuration

Throws
ConfigException

on IO or parse errors

Inherited from:
ConfigFactoryCommon
def parseReader(reader: Reader, options: ConfigParseOptions): Config

Parses a Reader into a Config instance. Does not call Config.resolve() or merge the parsed stream with any other configuration; this method parses a single stream and does nothing else. It does process "include" statements in the parsed stream, and may end up doing other IO due to those statements.

Parses a Reader into a Config instance. Does not call Config.resolve() or merge the parsed stream with any other configuration; this method parses a single stream and does nothing else. It does process "include" statements in the parsed stream, and may end up doing other IO due to those statements.

Value parameters

options

parse options to control how the reader is interpreted

reader

the reader to parse

Attributes

Returns

the parsed configuration

Throws
ConfigException

on IO or parse errors

Inherited from:
ConfigFactoryCommon
def parseString(s: String): Config

Parses a string (which should be valid HOCON or JSON).

Parses a string (which should be valid HOCON or JSON).

Value parameters

s

string to parse

Attributes

Returns

the parsed configuration

Inherited from:
ConfigFactoryCommon
def parseString(s: String, options: ConfigParseOptions): Config

Parses a string (which should be valid HOCON or JSON by default, or the syntax specified in the options otherwise).

Parses a string (which should be valid HOCON or JSON by default, or the syntax specified in the options otherwise).

Value parameters

options

parse options

s

string to parse

Attributes

Returns

the parsed configuration

Inherited from:
ConfigFactoryCommon