public final class StreamMergeAlgorithms
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static StreamMergeAlgorithm |
acceptOnlyOne()
Algorithm that only accepts one input, failing with
DuplicateRelativeFileException
if invoked with more than one input. |
static StreamMergeAlgorithm |
concat()
Algorithm that concatenates streams ensuring each stream ends with a UNIX newline character.
|
static StreamMergeAlgorithm |
pickFirst()
Algorithm that copies the content of the first stream.
|
static StreamMergeAlgorithm |
select(java.util.function.Function<java.lang.String,StreamMergeAlgorithm> select)
Algorithm that selects another algorithm based on a function that is applied to the file's
path.
|
@NonNull public static StreamMergeAlgorithm pickFirst()
@NonNull public static StreamMergeAlgorithm concat()
public static StreamMergeAlgorithm acceptOnlyOne()
DuplicateRelativeFileException
if invoked with more than one input.@NonNull public static StreamMergeAlgorithm select(@NonNull java.util.function.Function<java.lang.String,StreamMergeAlgorithm> select)
select - the algorithm-selection function; this function will determine which algorithm
to use based on the OS-independent path of the file to merge