Package com.android.builder.merge
Interface StreamMergeAlgorithm
public interface StreamMergeAlgorithm
Algorithm to merge streams. See
StreamMergeAlgorithms for some commonly-used algorithms.-
Method Summary
Modifier and TypeMethodDescriptionmerge(String path, List<InputStream> streams, com.google.common.io.Closer closer) Merges the given streams.
-
Method Details
-
merge
@NonNull InputStream merge(@NonNull String path, @NonNull List<InputStream> streams, @NonNull com.google.common.io.Closer closer) Merges the given streams.- Parameters:
path- the OS-independent path being mergedstreams- the source streams; must contain at least one elementcloser- the closer that will close the source streams and the merged stream (an implementation of this method will register the streams to be closed with this closer)- Returns:
- the merged stream
-