ProGuard

proguard
Class ConfigurationParser

java.lang.Object
  extended byproguard.ConfigurationParser

public class ConfigurationParser
extends Object

This class parses ProGuard configurations. Configurations can be read from an array of arguments or from a configuration file or URL.


Constructor Summary
ConfigurationParser(String fileName)
          Creates a new ConfigurationParser for the given file name.
ConfigurationParser(String[] args)
          Creates a new ConfigurationParser for the given String arguments.
ConfigurationParser(URL url)
          Creates a new ConfigurationParser for the given URL.
 
Method Summary
static void main(String[] args)
          A main method for testing configuration parsing.
 void parse(Configuration configuration)
          Parses and returns the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationParser

public ConfigurationParser(String[] args)
                    throws IOException
Creates a new ConfigurationParser for the given String arguments.


ConfigurationParser

public ConfigurationParser(String fileName)
                    throws IOException
Creates a new ConfigurationParser for the given file name.


ConfigurationParser

public ConfigurationParser(URL url)
                    throws IOException
Creates a new ConfigurationParser for the given URL.

Method Detail

parse

public void parse(Configuration configuration)
           throws ParseException,
                  IOException
Parses and returns the configuration.

Parameters:
configuration - the configuration that is updated as a side-effect.
Throws:
ParseException - if the any of the configuration settings contains a syntax error.
IOException - if an IO error occurs while reading a configuration.

main

public static void main(String[] args)
A main method for testing configuration parsing.


ProGuard