Interface StreamMergeAlgorithm


public interface StreamMergeAlgorithm
Algorithm to merge streams. See StreamMergeAlgorithms for some commonly-used algorithms.
  • Method Summary

    Modifier and Type
    Method
    Description
    merge(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 merged
      streams - the source streams; must contain at least one element
      closer - 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