Package com.android.builder.packaging
Class JarFlinger
java.lang.Object
com.android.builder.packaging.JarFlinger
- All Implemented Interfaces:
JarCreator,Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.android.builder.packaging.JarCreator
JarCreator.Relocator, JarCreator.Transformer -
Field Summary
Fields inherited from interface com.android.builder.packaging.JarCreator
CLASSES_ONLY, EXCLUDE_CLASSES -
Constructor Summary
Constructors -
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 inputJar) voidvoidaddJar(Path path, Predicate<String> filterOverride, JarCreator.Relocator relocator) voidclose()voidsetCompressionLevel(int compressionLevel) voidsetManifestProperties(Map<String, String> properties)
-
Constructor Details
-
JarFlinger
- Throws:
IOException
-
JarFlinger
- Throws:
IOException
-
-
Method Details
-
addDirectory
- Specified by:
addDirectoryin interfaceJarCreator- Throws:
IOException
-
addDirectory
public void addDirectory(@NonNull Path directory, @Nullable Predicate<String> filterOverride, @Nullable JarCreator.Transformer transformer, @Nullable JarCreator.Relocator relocator) throws IOException - Specified by:
addDirectoryin interfaceJarCreator- Throws:
IOException
-
addJar
- Specified by:
addJarin interfaceJarCreator- Throws:
IOException
-
addJar
- Specified by:
addJarin interfaceJarCreator- Throws:
IOException
-
addJar
public void addJar(@NonNull Path path, @Nullable Predicate<String> filterOverride, @Nullable JarCreator.Relocator relocator) throws IOException - Specified by:
addJarin interfaceJarCreator- Throws:
IOException
-
addFile
- Specified by:
addFilein interfaceJarCreator- Throws:
IOException
-
addEntry
- Specified by:
addEntryin interfaceJarCreator- Throws:
IOException
-
setCompressionLevel
public void setCompressionLevel(int compressionLevel) - Specified by:
setCompressionLevelin interfaceJarCreator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
setManifestProperties
- Specified by:
setManifestPropertiesin interfaceJarCreator- Throws:
IOException
-