All Downloads are FREE. Search and download functionalities are using the official Maven repository.

soot.jimple.infoflow.android.axml.parsers.IBinaryXMLFileParser Maven / Gradle / Ivy

There is a newer version: 2.14.1
Show newest version
package soot.jimple.infoflow.android.axml.parsers;

import java.io.IOException;
import java.util.List;

import soot.jimple.infoflow.android.axml.AXmlDocument;
import soot.jimple.infoflow.android.axml.AXmlNode;

/**
 * Common interface for all methods capable of parsing binary Android XML files
 * 
 * @author Steven Arzt
 */
public interface IBinaryXMLFileParser {

	/**
	 * Parses the binary XML file with the AXMLPrinter2 library
	 * @param	buffer					The buffer to be parsed
	 * @throws	IOException				if an I/O error occurs.
	 */
	public void parseFile(byte[] buffer) throws IOException;

	/**
	 * Returns the Android XML document.
	 * 
	 * @return	the Android XML document
	 */
	public AXmlDocument getDocument();

	/**
	 * Returns a list containing all nodes of the xml document which have the given tag.
	 * 
	 * @param	tag		the tag being search for
	 * @return	list pointing on all nodes which have the given tag.
	 */
	public List getNodesWithTag(String tag);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy