public void calculateSourcesSinksEntrypoints(String sourceSinkFile) throws IOException, XmlPullParserException {
  ISourceSinkDefinitionProvider parser=null;
  String fileExtension=sourceSinkFile.substring(sourceSinkFile.lastIndexOf("."));
  fileExtension=fileExtension.toLowerCase();
  if (fileExtension.equals(".xml"))   parser=XMLSourceSinkParser.fromFile(sourceSinkFile);
 else   if (fileExtension.equals(".txt"))   parser=PermissionMethodParser.fromFile(sourceSinkFile);
 else   throw new UnsupportedDataTypeException("The Inputfile isn't a .txt or .xml file.");
  calculateSourcesSinksEntrypoints(parser);
}

public void calculateSourcesSinksEntrypoints ( String sourceSinkFile ) throws IOException , XmlPullParserException { ISourceSinkDefinitionProvider parser = null ; String fileExtension = sourceSinkFile . substring ( sourceSinkFile . lastIndexOf ( "." ) ) ; fileExtension = fileExtension . toLowerCase ( ) ; if ( fileExtension . equals ( ".xml" ) ) parser = XMLSourceSinkParser . fromFile ( sourceSinkFile ) ; else if ( fileExtension . equals ( ".txt" ) ) parser = PermissionMethodParser . fromFile ( sourceSinkFile ) ; else throw new UnsupportedDataTypeException ( "The Inputfile isn't a .txt or .xml file." ) ; calculateSourcesSinksEntrypoints ( parser ) ; }
calculates the sets of sources , sinks , entry points , and callbacks methods for the given apk file .
