C - the type of config created by the parserpublic interface ConfigParser<C extends Config>
| Modifier and Type | Method and Description |
|---|---|
ConfigFormat<C> |
getFormat() |
default void |
parse(java.io.File file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction)
Parses a configuration with the UTF-8 charset.
|
default void |
parse(java.io.File file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
Parses a configuration.
|
default C |
parse(java.io.File file,
FileNotFoundAction nefAction)
Parses a configuration with the UTF-8 charset.
|
default C |
parse(java.io.File file,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
Parses a configuration.
|
default C |
parse(java.io.InputStream input)
Parses a configuration with the UTF-8 charset.
|
default C |
parse(java.io.InputStream input,
java.nio.charset.Charset charset)
Parses a configuration.
|
default void |
parse(java.io.InputStream input,
Config destination,
ParsingMode parsingMode)
Parses a configuration with the UTF-8 charset.
|
default void |
parse(java.io.InputStream input,
Config destination,
ParsingMode parsingMode,
java.nio.charset.Charset charset)
Parses a configuration.
|
default void |
parse(java.nio.file.Path file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction)
Parses a configuration with the UTF-8 charset.
|
default void |
parse(java.nio.file.Path file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
Parses a configuration.
|
default C |
parse(java.nio.file.Path file,
FileNotFoundAction nefAction)
Parses a configuration with the UTF-8 charset.
|
default C |
parse(java.nio.file.Path file,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
Parses a configuration.
|
C |
parse(java.io.Reader reader)
Parses a configuration.
|
void |
parse(java.io.Reader reader,
Config destination,
ParsingMode parsingMode)
Parses a configuration.
|
default C |
parse(java.lang.String input)
Parses a configuration String.
|
default void |
parse(java.lang.String input,
Config destination,
ParsingMode parsingMode)
Parses a configuration String.
|
default C |
parse(java.net.URL url)
Parses a configuration.
|
default void |
parse(java.net.URL url,
Config destination,
ParsingMode parsingMode)
Parses a configuration.
|
ConfigFormat<C> getFormat()
C parse(java.io.Reader reader)
reader - the reader to parseParsingException - if an error occursvoid parse(java.io.Reader reader,
Config destination,
ParsingMode parsingMode)
reader - the reader to parsedestination - the config where to put the datadefault C parse(java.lang.String input)
input - the input to parseParsingException - if an error occursdefault void parse(java.lang.String input,
Config destination,
ParsingMode parsingMode)
input - the input to parsedestination - the config where to put the dataParsingException - if an error occursdefault C parse(java.io.InputStream input)
input - the input to parseParsingException - if an error occursdefault C parse(java.io.InputStream input, java.nio.charset.Charset charset)
input - the input to parseParsingException - if an error occursdefault void parse(java.io.InputStream input,
Config destination,
ParsingMode parsingMode)
input - the input to parsedestination - the config where to put the dataParsingException - if an error occursdefault void parse(java.io.InputStream input,
Config destination,
ParsingMode parsingMode,
java.nio.charset.Charset charset)
input - the input to parsedestination - the config where to put the dataParsingException - if an error occursdefault C parse(java.io.File file, FileNotFoundAction nefAction)
file - the file to parseParsingException - if an error occursdefault C parse(java.io.File file, FileNotFoundAction nefAction, java.nio.charset.Charset charset)
file - the file to parseParsingException - if an error occursdefault void parse(java.io.File file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction)
file - the file to parsedestination - the config where to put the dataParsingException - if an error occursdefault void parse(java.io.File file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
file - the file to parsedestination - the config where to put the dataParsingException - if an error occursdefault C parse(java.nio.file.Path file, FileNotFoundAction nefAction)
file - the nio Path to parseParsingException - if an error occursdefault C parse(java.nio.file.Path file, FileNotFoundAction nefAction, java.nio.charset.Charset charset)
file - the nio Path to parseParsingException - if an error occursdefault void parse(java.nio.file.Path file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction)
file - the nio Path to parsedestination - the config where to put the dataParsingException - if an error occursdefault void parse(java.nio.file.Path file,
Config destination,
ParsingMode parsingMode,
FileNotFoundAction nefAction,
java.nio.charset.Charset charset)
file - the nio Path to parsedestination - the config where to put the dataParsingException - if an error occursdefault C parse(java.net.URL url)
url - the url to parseParsingException - if an error occursdefault void parse(java.net.URL url,
Config destination,
ParsingMode parsingMode)
url - the url to parsedestination - the config where to put the dataParsingException - if an error occurs