Package net.bramp.ffmpeg
Class RunProcessFunction
java.lang.Object
net.bramp.ffmpeg.RunProcessFunction
- All Implemented Interfaces:
ProcessFunction
Simple function that creates a Process with the arguments, and returns a BufferedReader reading
stdout.
- Author:
- bramp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRuns a process with the given arguments and returns the process handle.setWorkingDirectory(File workingDirectory) Sets the working directory for the process using a File object.setWorkingDirectory(String workingDirectory) Sets the working directory for the process using a path string.
-
Constructor Details
-
RunProcessFunction
public RunProcessFunction()
-
-
Method Details
-
run
Description copied from interface:ProcessFunctionRuns a process with the given arguments and returns the process handle.- Specified by:
runin interfaceProcessFunction- Throws:
IOException
-
setWorkingDirectory
Sets the working directory for the process using a path string. -
setWorkingDirectory
Sets the working directory for the process using a File object.
-