public class ConfigurationParser extends Object
ConfigurationHandler| Modifier and Type | Field and Description |
|---|---|
static String |
IMPORT_PREFIX |
static String |
LOAD_PREFIX |
static String |
MAIN_PREFIX |
static String |
OPTIONALLY_PREFIX
Optionally spec prefix.
|
static String |
SET_PREFIX |
| Constructor and Description |
|---|
ConfigurationParser(ConfigurationHandler handler,
Properties systemProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
filter(String text)
Filter a string for system properties.
|
protected void |
loadGlob(String line,
boolean optionally)
Load a glob into the specified classloader.
|
void |
parse(InputStream is)
Parse launcher configuration file and send events to the handler.
|
public static final String MAIN_PREFIX
public static final String SET_PREFIX
public static final String IMPORT_PREFIX
public static final String LOAD_PREFIX
public static final String OPTIONALLY_PREFIX
public ConfigurationParser(ConfigurationHandler handler, Properties systemProperties)
public void parse(InputStream is) throws IOException, ConfigurationException, DuplicateRealmException, NoSuchRealmException
protected void loadGlob(String line, boolean optionally) throws MalformedURLException, FileNotFoundException, ConfigurationException
line - The path configuration line.optionally - Whether the path is optional or requiredMalformedURLException - If the line does not represent
a valid path element.FileNotFoundException - If the line does not represent
a valid path element in the filesystem.ConfigurationExceptionprotected String filter(String text) throws ConfigurationException
text - The text to filter.ConfigurationException - If the property does not
exist or if there is a syntax error.Copyright © 2002-2014 Codehaus. All Rights Reserved.