Package org.aksw.commons.io.process.pipe
Class PipeTransformRx
java.lang.Object
org.aksw.commons.io.process.pipe.PipeTransformRx
RxWrapper for pipe transforms
'Polyfills' the path-based operations (mapStreamToPath, mapPathToStream, mapPathtoPath)
using mapStreamToStream.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PipeTransformRxfromSysCallStreamToStream(String... args) io.reactivex.rxjava3.core.SingleTransformer<Path,InputStream> io.reactivex.rxjava3.core.SingleTransformer<InputStream,Path> mapStreamToPath(Path path) io.reactivex.rxjava3.core.SingleTransformer<InputStream,InputStream> static <T,V> io.reactivex.rxjava3.core.Single<V> singleFromCompletableFuture(Supplier<T> objSupplier, Function<? super T, ? extends CompletableFuture<V>> getFuture, ThrowingConsumer<? super T> cancelAction) 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
-
Field Details
-
pipeTransform
-
-
Constructor Details
-
PipeTransformRx
-
-
Method Details
-
mapStreamToStream
-
mapStreamToPath
-
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
-