public final class DexArchives
extends java.lang.Object
DexArchive.| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Predicate<java.nio.file.Path> |
DEX_ENTRY_FILTER |
| Modifier and Type | Method and Description |
|---|---|
static DexArchive |
fromInput(java.nio.file.Path path)
Creates a
DexArchive from the specified path. |
public static final java.util.function.Predicate<java.nio.file.Path> DEX_ENTRY_FILTER
@NonNull public static DexArchive fromInput(@NonNull java.nio.file.Path path) throws java.io.IOException
DexArchive from the specified path. It supports
.jar files and directories as inputs.
In case of a .jar file, note there are two mutually exclusive modes, write-only and read-only. In case of a write-only mode, only allowed operation is adding entries. If read-only mode is used, entires can only be read.
java.io.IOException