Tabnine Logo
XmlUtils.parseUtfXmlFile
Code IndexAdd Tabnine to your IDE (free)

How to use
parseUtfXmlFile
method
in
com.android.utils.XmlUtils

Best Java code snippets using com.android.utils.XmlUtils.parseUtfXmlFile (Showing top 7 results out of 315)

origin: com.android.tools.build/gradle-core

/**
 * Merges the artifacts of a temporary build info into this build's artifacts. If this build
 * finishes the build-info.xml will contain the artifacts produced by this iteration as well as
 * the artifacts produced in a previous iteration and saved into the temporary build info.
 *
 * @param tmpBuildInfoFile a past build build-info.xml
 * @throws IOException cannot be thrown.
 * @throws SAXException when the xml is not correct.
 * @throws ParserConfigurationException when the xml parser cannot be initialized.
 */
public void mergeFromFile(@NonNull File tmpBuildInfoFile)
    throws IOException, SAXException, ParserConfigurationException {
  mergeFrom(XmlUtils.parseUtfXmlFile(tmpBuildInfoFile, false));
}
origin: com.android.tools.build/gradle-core

/**
 * Load previous iteration build-info.xml. The only information we really care about is the list
 * of previous builds so we can provide the list of artifacts to the IDE to catch up a
 * disconnected device.
 *
 * @param persistedState the persisted xml file.
 */
public void loadFromXmlFile(@NonNull File persistedState)
    throws IOException, ParserConfigurationException, SAXException {
  if (!persistedState.exists()) {
    setVerifierStatus(InstantRunVerifierStatus.INITIAL_BUILD);
    return;
  }
  loadFromDocument(XmlUtils.parseUtfXmlFile(persistedState, false));
}
origin: com.android.tools.build/builder

Document document = XmlUtils.parseUtfXmlFile(itemStorage, true);
origin: com.amazon.device.tools.build/builder

Document document = XmlUtils.parseUtfXmlFile(itemStorage, true);
origin: com.android.tools.build/gradle-core

Document document = XmlUtils.parseUtfXmlFile(getMergedManifest(), true);
Element root = document.getDocumentElement();
if (root != null) {
origin: com.android.tools.lint/lint-api

Document document = XmlUtils.parseUtfXmlFile(configFile, false);
String baseline = document.getDocumentElement().getAttribute(ATTR_BASELINE);
if (!baseline.isEmpty()) {
origin: com.android.tools.build/builder

Document document = XmlUtils.parseUtfXmlFile(file, true);
com.android.utilsXmlUtilsparseUtfXmlFile

Javadoc

Parses the given UTF file as a DOM document, using the JDK parser. The parser does not validate, and is optionally namespace aware.

Popular methods of XmlUtils

  • parseDocument
    Parses the given XML string as a DOM document, using the JDK parser. The parser does not validate, a
  • parseDocumentSilently
    Parses the given XML string as a DOM document, using the JDK parser. The parser does not validate, a
  • toXmlAttributeValue
    Converts the given attribute value to an XML-attribute-safe value, meaning that single and double qu
  • toXml
  • toXmlTextValue
    Converts the given attribute value to an XML-text-safe value, meaning that less than and ampersand c
  • fromXmlAttributeValue
    Converts the given XML-attribute-safe value to a java string
  • getRootTagName
    Returns the name of the root element tag stored in the given file, or null if it can't be determined
  • getUtfReader
    Returns a character reader for the given file, which must be a UTF encoded file. The reader does no
  • lookupNamespacePrefix
    Returns the namespace prefix matching the requested namespace URI. If no such declaration is found,
  • append
    Dump node to string without indentation adjustments
  • appendXmlAttributeValue
    Appends text to the given StringBuilder and escapes it as required for a DOM attribute node.
  • appendXmlTextValue
    Appends text to the given StringBuilder and escapes it as required for a DOM text node.
  • appendXmlAttributeValue,
  • appendXmlTextValue,
  • getSourceFilePosition,
  • stripBom

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now