Class Aar

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Immutable
    public final class Aar
    extends AndroidArchive
    • Constructor Detail

      • Aar

        public Aar​(@NonNull
                   java.nio.file.Path file)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • Aar

        public Aar​(@NonNull
                   java.io.File file)
            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • containsMainClass

        public boolean containsMainClass​(@NonNull
                                         java.lang.String name)
                                  throws java.io.IOException
        Specified by:
        containsMainClass in class AndroidArchive
        Throws:
        java.io.IOException
      • containsSecondaryClass

        public boolean containsSecondaryClass​(@NonNull
                                              java.lang.String name)
                                       throws java.io.IOException
        Specified by:
        containsSecondaryClass in class AndroidArchive
        Throws:
        java.io.IOException
      • getJavaResource

        @Nullable
        public java.nio.file.Path getJavaResource​(@NonNull
                                                  java.lang.String name)
                                           throws java.io.IOException
        Specified by:
        getJavaResource in class AndroidArchive
        Throws:
        java.io.IOException
      • getAndroidManifestContentsAsString

        @Nullable
        public java.lang.String getAndroidManifestContentsAsString()
                                                            throws java.io.IOException
        Returns the contents of the AAR's AndroidManifest.xml entry as a String; returns null if the AAR doesn't have an AndroidManifest.xml entry.
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Zip