public class AndroidManifestParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AndroidManifestParser.ManifestErrorHandler |
Constructor and Description |
---|
AndroidManifestParser() |
Modifier and Type | Method and Description |
---|---|
static ManifestData |
parse(com.android.io.IAbstractFile manifestFile)
Parses the Android Manifest, and returns an object containing the result of the parsing.
|
static ManifestData |
parse(com.android.io.IAbstractFile manifestFile,
boolean gatherData,
AndroidManifestParser.ManifestErrorHandler errorHandler)
Parses the Android Manifest, and returns a
ManifestData object containing the
result of the parsing. |
static ManifestData |
parse(com.android.io.IAbstractFolder projectFolder) |
static ManifestData |
parse(java.io.InputStream manifestFileStream)
Parses the Android Manifest from an
InputStream , and returns a ManifestData
object containing the result of the parsing. |
public static ManifestData parse(com.android.io.IAbstractFile manifestFile, boolean gatherData, AndroidManifestParser.ManifestErrorHandler errorHandler) throws org.xml.sax.SAXException, java.io.IOException, com.android.io.StreamException, javax.xml.parsers.ParserConfigurationException
ManifestData
object containing the
result of the parsing.manifestFile
- the IAbstractFile
representing the manifest file.gatherData
- indicates whether the parsing will extract data from the manifest. If false
the method will always return null.errorHandler
- an optional errorHandler.com.android.io.StreamException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public static ManifestData parse(com.android.io.IAbstractFile manifestFile) throws org.xml.sax.SAXException, java.io.IOException, com.android.io.StreamException, javax.xml.parsers.ParserConfigurationException
This is the equivalent of calling
parse(manifestFile, true, null)
manifestFile
- the manifest file to parse.javax.xml.parsers.ParserConfigurationException
com.android.io.StreamException
java.io.IOException
org.xml.sax.SAXException
public static ManifestData parse(com.android.io.IAbstractFolder projectFolder) throws org.xml.sax.SAXException, java.io.IOException, com.android.io.StreamException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
com.android.io.StreamException
javax.xml.parsers.ParserConfigurationException
public static ManifestData parse(java.io.InputStream manifestFileStream) throws org.xml.sax.SAXException, java.io.IOException, com.android.io.StreamException, javax.xml.parsers.ParserConfigurationException
InputStream
, and returns a ManifestData
object containing the result of the parsing.manifestFileStream
- the InputStream
representing the manifest file.com.android.io.StreamException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException