public final class XmlLoader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static XmlDocument |
load(KeyResolver<java.lang.String> selectors,
PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty> systemPropertyResolver,
com.android.ide.common.blame.SourceFile sourceFile,
java.lang.String xml,
XmlDocument.Type type,
com.google.common.base.Optional<java.lang.String> mainManifestPackageName,
com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model)
Loads a xml document from its
String representation without doing xml validation and
return a XmlDocument |
static XmlDocument |
load(KeyResolver<java.lang.String> selectors,
PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty> systemPropertyResolver,
java.lang.String displayName,
java.io.File xmlFile,
java.io.InputStream inputStream,
XmlDocument.Type type,
com.google.common.base.Optional<java.lang.String> mainManifestPackageName,
com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model)
Loads an xml file without doing xml validation and return a
XmlDocument |
@NonNull public static XmlDocument load(@NonNull KeyResolver<java.lang.String> selectors, @NonNull PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty> systemPropertyResolver, @NonNull java.lang.String displayName, @NonNull java.io.File xmlFile, @NonNull java.io.InputStream inputStream, @NonNull XmlDocument.Type type, @NonNull com.google.common.base.Optional<java.lang.String> mainManifestPackageName, @NonNull com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
XmlDocumentdisplayName - the xml file display name.xmlFile - the xml file.XmlDocumentjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationException@NonNull public static XmlDocument load(@NonNull KeyResolver<java.lang.String> selectors, @NonNull PlaceholderHandler.KeyBasedValueResolver<ManifestSystemProperty> systemPropertyResolver, @NonNull com.android.ide.common.blame.SourceFile sourceFile, @NonNull java.lang.String xml, @NonNull XmlDocument.Type type, @NonNull com.google.common.base.Optional<java.lang.String> mainManifestPackageName, @NonNull com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
String representation without doing xml validation and
return a XmlDocumentsourceFile - the source location to use for logging and record collection.xml - the persisted xml.XmlDocumentjava.io.IOException - this should never be thrown.org.xml.sax.SAXException - if the xml is incorrectjavax.xml.parsers.ParserConfigurationException - if the xml engine cannot be configured.