@Immutable public class Apk extends DexAndroidArchive
CLASS_FORMAT| Constructor and Description |
|---|
Apk(java.io.File apk) |
Apk(java.nio.file.Path file) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentsSize()
Returns the total size of all the contents in the APK.
|
java.nio.file.Path |
getJavaResource(java.lang.String name) |
java.lang.String |
toString() |
containsMainClass, containsSecondaryClass, getAllDexes, getMainDexFile, getSecondaryDexFilescheckValidClassName, containsClass, getResourceclose, exists, getEntries, getEntries, getEntry, getEntryAsZip, getFilepublic Apk(@NonNull
java.nio.file.Path file)
throws java.io.IOException
java.io.IOExceptionpublic Apk(@NonNull
java.io.File apk)
throws java.io.IOException
java.io.IOException@Nullable
public java.nio.file.Path getJavaResource(@NonNull
java.lang.String name)
throws java.io.IOException
getJavaResource in class AndroidArchivejava.io.IOExceptionpublic long getContentsSize()
throws java.io.IOException
java.io.IOException