public class DexArchiveBuilder
extends java.lang.Object
DexArchive. To do so, configure the builder in
a constructor, and invoke convert(ClassFileInput, DexArchive) method that will trigger
the actual conversion.| Modifier and Type | Class and Description |
|---|---|
static class |
DexArchiveBuilder.DexBuilderException
Exception thrown if something goes wrong when building a dex archive.
|
| Constructor and Description |
|---|
DexArchiveBuilder(DexArchiveBuilderConfig config)
Creates instance that is configured for processing .class input files, and producing a dex
archive.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convert(ClassFileInput input,
DexArchive output)
Converts the .CLASS file inputs specified in the
config to the .DEX format. |
public DexArchiveBuilder(@NonNull
DexArchiveBuilderConfig config)
DexArchiveBuilderConfig which
contains relevant options.
DxContext specified in the config will be used for all conversions. We do not use
anything but standard and error output from this object, so by reusing it, we will skip
creating unnecessary objects.
config - contains setup for this builderpublic void convert(@NonNull
ClassFileInput input,
@NonNull
DexArchive output)
throws java.io.IOException
config to the .DEX format. Class
files are read from the specified class file input object, while the output is written to the
specified dex archive.java.io.IOException