public class FilterExecutionJava extends Object implements FilterConfig
| Modifier and Type | Field and Description |
|---|---|
protected Function<InputStream,InputStream> |
processor |
protected Destination |
source |
| Constructor and Description |
|---|
FilterExecutionJava(Function<InputStream,InputStream> processor,
Destination source) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<InputStreamSupplier> |
execStream()
Ideally, premature closing of the input stream should
propagate upstream and terminate any transformation processes upstream
|
FilterConfig |
ifNeedsFileInput(Supplier<Path> pathRequester,
BiConsumer<Path,FileWritingProcess> processCallback)
Same as execStream() as this
execution engine will never ask for the creation of temporary files
|
FilterConfig |
ifNeedsFileOutput(Supplier<Path> pathRequester,
BiConsumer<Path,FileWritingProcess> processCallback) |
DestinationFromFileCreation |
outputToFile(Path path)
If explicit output to a file is requested, the handler set via
ifNeedsFileOutput will not be called.
|
Destination |
outputToStream()
If the execution requires the generation of an intermediate file, the
handler for ifNeedsFileOutput should be called
|
FilterConfig |
pipeInto(FilterEngine nextFilter) |
boolean |
requiresFileOutput()
Method yields true if the filter needs to create an
intermediary output file
|
String |
toString() |
protected Function<InputStream,InputStream> processor
protected Destination source
public FilterExecutionJava(Function<InputStream,InputStream> processor, Destination source)
public io.reactivex.rxjava3.core.Single<InputStreamSupplier> execStream()
execStream in interface FilterConfigpublic FilterConfig ifNeedsFileInput(Supplier<Path> pathRequester, BiConsumer<Path,FileWritingProcess> processCallback)
ifNeedsFileInput in interface FilterConfigIOExceptionpublic FilterConfig ifNeedsFileOutput(Supplier<Path> pathRequester, BiConsumer<Path,FileWritingProcess> processCallback)
ifNeedsFileOutput in interface FilterConfigpublic FilterConfig pipeInto(FilterEngine nextFilter)
pipeInto in interface FilterConfigpublic DestinationFromFileCreation outputToFile(Path path)
FilterConfigoutputToFile in interface FilterConfigpublic Destination outputToStream()
FilterConfigoutputToStream in interface FilterConfigpublic boolean requiresFileOutput()
FilterConfigrequiresFileOutput in interface FilterConfigCopyright © 2020. All rights reserved.