Package com.android.builder.packaging
Interface JarCreator
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
JarFlinger
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectory(Path directory) voidaddDirectory(Path directory, Predicate<String> filterOverride, JarCreator.Transformer transformer, JarCreator.Relocator relocator) voidaddEntry(String entryPath, InputStream input) voidvoidaddJar(InputStream file) voidvoidaddJar(Path file, Predicate<String> filterOverride, JarCreator.Relocator relocator) A filter that keeps everything but ignores duplicate resources.voidsetCompressionLevel(int level) voidsetManifestProperties(Map<String, String> properties)
-
Field Details
-
CLASSES_ONLY
-
EXCLUDE_CLASSES
-
-
Method Details
-
allIgnoringDuplicateResources
A filter that keeps everything but ignores duplicate resources.Stateful, hence a factory method rather than an instance.
-
addDirectory
- Throws:
IOException
-
addDirectory
void addDirectory(@NonNull Path directory, @Nullable Predicate<String> filterOverride, @Nullable JarCreator.Transformer transformer, @Nullable JarCreator.Relocator relocator) throws IOException - Throws:
IOException
-
addJar
- Throws:
IOException
-
addJar
- Throws:
IOException
-
addJar
void addJar(@NonNull Path file, @Nullable Predicate<String> filterOverride, @Nullable JarCreator.Relocator relocator) throws IOException - Throws:
IOException
-
addFile
- Throws:
IOException
-
addEntry
- Throws:
IOException
-
setCompressionLevel
void setCompressionLevel(int level) -
setManifestProperties
- Throws:
IOException
-