public class ResourcesZipBuilder extends Object implements Closeable
See https://android.googlesource.com/platform/frameworks/base/+/lollipop-release/libs/androidfw/AssetManager.cpp#209
(*) Due to a bug in Android's zip handling, we actually create a 1-byte manifest... See https://android.googlesource.com/platform/system/core/+/48953a1b8fdcf1d6fa1aeeb40c57821d33fc87d2
| Modifier and Type | Field and Description |
|---|---|
static String |
ANDROID_MANIFEST_XML |
| Constructor and Description |
|---|
ResourcesZipBuilder(Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(InputStream stream,
long size,
long crc,
String name,
int compressionLevel,
boolean isDirectory) |
void |
close() |
public static final String ANDROID_MANIFEST_XML
public ResourcesZipBuilder(Path path) throws IOException
IOExceptionpublic void addEntry(InputStream stream, long size, long crc, String name, int compressionLevel, boolean isDirectory) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException