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
IOException
InvalidFileFormatException
public void parse(Reader input, OptionsHandler handler) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
public void parse(URL input, OptionsHandler handler) throws IOException, InvalidFileFormatException
IOException
InvalidFileFormatException
protected void parseError(String line, int lineNumber) throws InvalidFileFormatException
InvalidFileFormatException