Interface PathCoder

All Known Implementing Classes:
PathCoderGzip, PathCoderLbZip, PathCoderNativBzip, PathCoderSysBase

public interface PathCoder
Interface for converting source files to target files. The result type of Single should wrap the exit code of the operation. Note, that CompletableFuture was not used because the standard implementation does not support upstream cancellation - e.g. killing an underlying system process. Also, exceptions are wrapped in the single which means that the methods do not need to declare them which makes for a nicer interplay with lambdas.
Author:
raven
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    io.reactivex.rxjava3.core.Single<Integer>
    decode(Path input, Path output)
     
    io.reactivex.rxjava3.core.Single<Integer>
    encode(Path input, Path output)
     
  • Method Details

    • encode

      io.reactivex.rxjava3.core.Single<Integer> encode(Path input, Path output)
    • decode

      io.reactivex.rxjava3.core.Single<Integer> decode(Path input, Path output)
    • cmdExists

      boolean cmdExists()