Class PipeTransformRx

java.lang.Object
org.aksw.commons.io.process.pipe.PipeTransformRx

public class PipeTransformRx extends Object
RxWrapper for pipe transforms 'Polyfills' the path-based operations (mapStreamToPath, mapPathToStream, mapPathtoPath) using mapStreamToStream.
Author:
raven
  • Field Details

  • Constructor Details

    • PipeTransformRx

      public PipeTransformRx(PipeTransform pipeTransform)
  • Method Details

    • mapStreamToStream

      public io.reactivex.rxjava3.core.SingleTransformer<InputStream, InputStream> mapStreamToStream()
    • mapStreamToPath

      public io.reactivex.rxjava3.core.SingleTransformer<InputStream, Path> mapStreamToPath(Path path)
    • mapPathToStream

      public io.reactivex.rxjava3.core.SingleTransformer<Path, InputStream> mapPathToStream()
    • singleFromFileCreation

      public static io.reactivex.rxjava3.core.Single<Path> singleFromFileCreation(Supplier<FileCreation> fileCreationSupplier)
      If the file creation completed successfully, further subscriptions to the single should return the cached path to the file instead of starting the creation again
      Parameters:
      fc -
      Returns:
    • singleFromCompletableFuture

      public static <T,V> io.reactivex.rxjava3.core.Single<V> singleFromCompletableFuture(Supplier<T> objSupplier, Function<? super T, ? extends CompletableFuture<V>> getFuture, ThrowingConsumer<? super T> cancelAction)
    • fromSysCallStreamToStream

      public static PipeTransformRx fromSysCallStreamToStream(String... args)