public class Processes extends Object
WARNING: Spawning processes is not secure. Use this class with caution. This class is in the "plus" module because "plus" is not used by default. Do not move this class to the "core" module.
| Modifier and Type | Class and Description |
|---|---|
private static class |
Processes.ProcessFactory
Creates processes.
|
private static class |
Processes.ProcessLinesEnumerator
Enumerator that executes a process and returns each line as an element.
|
private static class |
Processes.SeparatedLinesEnumerable
Enumerator that executes a process and returns each line as an element.
|
| Modifier | Constructor and Description |
|---|---|
private |
Processes() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Enumerable<String> |
processLines(char sep,
String... args)
Executes a command and returns its result as an enumerable of lines.
|
private static Enumerable<String> |
processLines(char sep,
com.google.common.base.Supplier<Process> processSupplier)
Executes a command and returns its result as an enumerable of lines.
|
(package private) static Enumerable<String> |
processLines(String... args)
Executes a command and returns its result as an enumerable of lines.
|
private static com.google.common.base.Supplier<Process> |
processSupplier(String... args) |
static Enumerable<String> processLines(String... args)
static Enumerable<String> processLines(char sep, String... args)
private static Enumerable<String> processLines(char sep, com.google.common.base.Supplier<Process> processSupplier)
sep - Separator characterprocessSupplier - Command and its argumentsCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.