Cancellation
Shared cooperative-cancellation helpers for the mixing / conversion pipeline.
Cancellation is polled (BooleanSupplier) rather than interrupt-driven, but a thread interrupt is honored too. The interrupt status is deliberately preserved (isInterrupted(), never interrupted()) so outer layers still observe it.
Functions
Link copied to clipboard
public static boolean contentEquals(Path first, Path second, BooleanSupplier cancellationRequested, String cancellationMessage)
Byte-for-byte file comparison with a size short-circuit, polling for cancellation between reads.
Link copied to clipboard