Interface ManifestMerger2.ManifestDocumentProvider

Enclosing class:
ManifestMerger2

public static interface ManifestMerger2.ManifestDocumentProvider
A ManifestMerger2.ManifestDocumentProvider provides the merged manifest XML Document instance for the project a given File belongs to.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a Merged manifest XML document for the given file's project.
  • Method Details

    • getManifestDocument

      Optional<Document> getManifestDocument(@NonNull File file)
      Gets a Merged manifest XML document for the given file's project. Returns Optional.empty() when the document is unavailable. ManifestMerger process falls back to the ManifestMerger2.FileStreamProvider when the document is not available.
      Parameters:
      file - the file handle
      Returns:
      the contents of the file