Package org.aksw.commons.io.process.pipe
Class PipeTransformSysCallStream
- java.lang.Object
-
- org.aksw.commons.io.process.pipe.PipeTransformSysCallStream
-
- All Implemented Interfaces:
PipeTransform
public class PipeTransformSysCallStream extends Object implements PipeTransform
Implementation of a pipe transform that pipes all arguments to a streaming syscall- Author:
- raven
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]cmdprotected ProcessPipeEngineengine
-
Constructor Summary
Constructors Constructor Description PipeTransformSysCallStream(String[] cmd)PipeTransformSysCallStream(String[] cmd, ProcessPipeEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiFunction<Path,Path,FileCreation>mapPathToPath()java.util.function.Function<Path,InputStream>mapPathToStream()java.util.function.BiFunction<InputStream,Path,FileCreation>mapStreamToPath()java.util.function.Function<InputStream,InputStream>mapStreamToStream()
-
-
-
Field Detail
-
cmd
protected String[] cmd
-
engine
protected ProcessPipeEngine engine
-
-
Constructor Detail
-
PipeTransformSysCallStream
public PipeTransformSysCallStream(String[] cmd)
-
PipeTransformSysCallStream
public PipeTransformSysCallStream(String[] cmd, ProcessPipeEngine engine)
-
-
Method Detail
-
mapStreamToStream
public java.util.function.Function<InputStream,InputStream> mapStreamToStream()
- Specified by:
mapStreamToStreamin interfacePipeTransform
-
mapStreamToPath
public java.util.function.BiFunction<InputStream,Path,FileCreation> mapStreamToPath()
- Specified by:
mapStreamToPathin interfacePipeTransform
-
mapPathToStream
public java.util.function.Function<Path,InputStream> mapPathToStream()
- Specified by:
mapPathToStreamin interfacePipeTransform
-
mapPathToPath
public java.util.function.BiFunction<Path,Path,FileCreation> mapPathToPath()
- Specified by:
mapPathToPathin interfacePipeTransform
-
-