public final class Parser
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | MALFORMED_PARSER_CLASS | 
| static java.lang.String | NORMAL_PARSER_CLASS | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addInfo(InformationDesc info,
       net.sourceforge.jnlp.Node node,
       java.lang.String mod,
       java.lang.Object value)Adds a key,value pair to the information object. | 
| java.net.URL | getCodeBase() | 
| java.net.URL | getFileLocation()Returns the file location. | 
| Version | getFileVersion()Returns the file version. | 
| java.util.Locale | getLocale(java.lang.String localeStr)Returns a  Localefrom a single locale. | 
| static java.lang.Object | getParserInstance(ParserSettings settings) | 
| Version | getSpecVersion() | 
| static java.net.URL | getURL(java.lang.String href,
      java.lang.String nodeName,
      java.net.URL base,
      boolean strict) | 
public static final java.lang.String MALFORMED_PARSER_CLASS
public static final java.lang.String NORMAL_PARSER_CLASS
public Version getFileVersion()
public java.net.URL getFileLocation()
public java.net.URL getCodeBase()
public Version getSpecVersion()
protected void addInfo(InformationDesc info, net.sourceforge.jnlp.Node node, java.lang.String mod, java.lang.Object value)
info - the information objectnode - node name to be used as the keymod - key name appended with "-"+mod if not nullvalue - the info object to add (icon or string)public java.util.Locale getLocale(java.lang.String localeStr)
Locale from a single locale.localeStr - the locale stringpublic static java.net.URL getURL(java.lang.String href,
                  java.lang.String nodeName,
                  java.net.URL base,
                  boolean strict)
                           throws ParseException
ParseExceptionpublic static java.lang.Object getParserInstance(ParserSettings settings) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException