Package com.android.builder.merge
Interface IncrementalFileMergerOutput
- All Superinterfaces:
AutoCloseable,Closeable,OpenableCloseable
- All Known Implementing Classes:
DelegateIncrementalFileMergerOutput
Output of a merge operation. The output receives notifications of the operations that need to be
performed to execute the merge.
Operations on the output should only be done once the inputs have been open
(see OpenableCloseable.open().
Outputs need to be open before any operations can be performed and need to be closed to ensure all changes have been persisted.
In general, an output obtained from IncrementalFileMergerOutputs is used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(String path, List<IncrementalFileMergerInput> inputs, boolean compress) A path needs to be created.voidA path needs to be removed from the output.voidupdate(String path, List<String> prevInputNames, List<IncrementalFileMergerInput> inputs, boolean compress) A path needs to be updated.Methods inherited from interface com.android.builder.merge.OpenableCloseable
open
-
Method Details
-
remove
A path needs to be removed from the output.- Parameters:
path- the OS-independent path to remove
-
create
void create(@NonNull String path, @NonNull List<IncrementalFileMergerInput> inputs, boolean compress) A path needs to be created.- Parameters:
path- the OS-independent pathinputs- the inputs where the paths exists and that should be combined to generate the output. The inputs should already be opened when passed to this method. The inputs are provided in the same order they were provided toIncrementalFileMerger.merge(List, IncrementalFileMergerOutput, IncrementalFileMergerState, Predicate)compress- whether the data will be compressed
-
update
void update(@NonNull String path, @NonNull List<String> prevInputNames, @NonNull List<IncrementalFileMergerInput> inputs, boolean compress) A path needs to be updated.- Parameters:
path- the OS-independent pathprevInputNames- the previous inputs used to create or update the pathinputs- the inputs where the paths exists and that should be combined to generate the output. The inputs should already be opened when passed to this method. The inputs are provided in the same order they were provided toIncrementalFileMerger.merge(List, IncrementalFileMergerOutput, IncrementalFileMergerState, Predicate)compress- whether the data will be compressed
-