Uses of Class
java.lang.ProcessBuilder
| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
-
Uses of ProcessBuilder in java.lang
Methods in java.lang that return ProcessBuilder Modifier and Type Method Description ProcessBuilderProcessBuilder. command(String... command)Sets this process builder's operating system program and arguments.ProcessBuilderProcessBuilder. command(List<String> command)Sets this process builder's operating system program and arguments.ProcessBuilderProcessBuilder. directory(File directory)Sets this process builder's working directory.ProcessBuilderProcessBuilder. inheritIO()Sets the source and destination for subprocess standard I/O to be the same as those of the current Java process.ProcessBuilderProcessBuilder. redirectError(File file)Sets this process builder's standard error destination to a file.ProcessBuilderProcessBuilder. redirectError(ProcessBuilder.Redirect destination)Sets this process builder's standard error destination.ProcessBuilderProcessBuilder. redirectErrorStream(boolean redirectErrorStream)Sets this process builder'sredirectErrorStreamproperty.ProcessBuilderProcessBuilder. redirectInput(File file)Sets this process builder's standard input source to a file.ProcessBuilderProcessBuilder. redirectInput(ProcessBuilder.Redirect source)Sets this process builder's standard input source.ProcessBuilderProcessBuilder. redirectOutput(File file)Sets this process builder's standard output destination to a file.ProcessBuilderProcessBuilder. redirectOutput(ProcessBuilder.Redirect destination)Sets this process builder's standard output destination.Method parameters in java.lang with type arguments of type ProcessBuilder Modifier and Type Method Description static List<Process>ProcessBuilder. startPipeline(List<ProcessBuilder> builders)Starts a Process for each ProcessBuilder, creating a pipeline of processes linked by their standard output and standard input streams.