public class OptionsParser extends Object
| Constructor and Description |
|---|
OptionsParser() |
| Modifier and Type | Method and Description |
|---|---|
protected Config |
getConfig() |
static OptionsParser |
newInstance() |
static OptionsParser |
newInstance(Config config) |
void |
parse(InputStream input,
OptionsHandler handler) |
void |
parse(Reader input,
OptionsHandler handler) |
void |
parse(URL input,
OptionsHandler handler) |
protected void |
parseError(String line,
int lineNumber) |
protected void |
setConfig(Config value) |
public OptionsParser()
public static OptionsParser newInstance()
public static OptionsParser newInstance(Config config)
public void parse(InputStream input, OptionsHandler handler) throws IOException, InvalidFileFormatException
IOExceptionInvalidFileFormatExceptionpublic void parse(Reader input, OptionsHandler handler) throws IOException, InvalidFileFormatException
IOExceptionInvalidFileFormatExceptionpublic void parse(URL input, OptionsHandler handler) throws IOException, InvalidFileFormatException
IOExceptionInvalidFileFormatExceptionprotected void parseError(String line, int lineNumber) throws InvalidFileFormatException
InvalidFileFormatException