Class XMLConfigurationParser

java.lang.Object
soot.jimple.infoflow.android.config.XMLConfigurationParser

public class XMLConfigurationParser extends Object
Parser class for reading the FlowDroid configuration from an XML file
Author:
Steven Arzt
  • Method Details

    • fromFile

      public static XMLConfigurationParser fromFile(String fileName) throws IOException
      Creates a new XMLConfigurationParser from an XML configuration file
      Parameters:
      fileName - The full path and file name of the configuration file to read
      Returns:
      The parser that was initialized with the given XML file
      Throws:
      IOException - Thrown if the given file could not be read
    • fromStream

      public static XMLConfigurationParser fromStream(InputStream inputStream) throws IOException
      Creates a new XMLConfigurationParser from an input stream
      Parameters:
      inputStream - The stream that contains the XML data to read
      Returns:
      The parser that was initialized with the given XML file
      Throws:
      IOException - Thrown if the given file could not be read
    • parse

      public void parse(InfoflowAndroidConfiguration config)
      Parses the configuration file and fills the data into the given object
      Parameters:
      config - The configuration object to fill with the data read from the XML file
    • close

      public void close() throws IOException
      Closes the stream on which this parser operates
      Throws:
      IOException