Package com.android.builder.merge
Interface MergeOutputWriter
- All Superinterfaces:
AutoCloseable,Closeable,OpenableCloseable
Writes the output of a merge. The output is provided on a path-by-path basis.
Writers need to be open before any operations can be performed and need to be closed to ensure all changes have been persisted.
See MergeOutputWriters for some common implementations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(String path, InputStream data, boolean compress) Creates a new path in the output.voidRemoves a path from the output.voidreplace(String path, InputStream data, boolean compress) Replaces a path's contents with new contents.Methods inherited from interface com.android.builder.merge.OpenableCloseable
open
-
Method Details
-
remove
Removes a path from the output.- Parameters:
path- the path to remove
-
create
Creates a new path in the output.- Parameters:
path- the path to createdata- the path's datacompress- whether the data will be compressed
-
replace
Replaces a path's contents with new contents.- Parameters:
path- the path to replacedata- the new path's datacompress- whether the data will be compressed
-