Class XMLConfigurationParser
java.lang.Object
soot.jimple.infoflow.android.config.XMLConfigurationParser
Parser class for reading the FlowDroid configuration from an XML file
- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the stream on which this parser operatesstatic XMLConfigurationParserCreates a newXMLConfigurationParserfrom an XML configuration filestatic XMLConfigurationParserfromStream(InputStream inputStream) Creates a newXMLConfigurationParserfrom an input streamvoidparse(InfoflowAndroidConfiguration config) Parses the configuration file and fills the data into the given object
-
Method Details
-
fromFile
Creates a newXMLConfigurationParserfrom 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
Creates a newXMLConfigurationParserfrom 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
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
Closes the stream on which this parser operates- Throws:
IOException
-