| Package | Description |
|---|---|
| com.eaio.exec |
Wrapper code around Commons Exec
that runs external programs and captures their output.
|
| Modifier and Type | Method and Description |
|---|---|
Executable |
Executable.bufferStderr()
The standard error stream of all commands is returned in a
StringBuffer. |
Executable |
Executable.bufferStdout()
The standard output stream of all commands is returned in a
StringBuffer. |
Executable |
Executable.daemonThreads()
The threads reading from stdout and stderr are
daemon threads. |
Executable |
Executable.encoding(String encoding)
Sets the encoding.
|
Executable |
Executable.expect(int value)
Sets the expected exit value.
|
Executable |
Executable.expect(Object values)
Sets the expected exit values.
|
Executable |
Executable.get() |
Executable |
Executable.get(long timeout,
TimeUnit unit) |
Executable |
Executable.ignoreStderr()
The standard error stream of the command is ignored.
|
Executable |
Executable.ignoreStdout()
The standard output stream of the command is ignored.
|
Executable |
Executable.in(Object workingDirectory)
Sets the directory the commands are run in.
|
Executable |
Executable.limit(int linesOrCharacters)
Limits the number of stored lines (if using Queues) or characters (if using
StringBuffers). |
Executable |
Executable.lowPriority()
Convenience method that sets the
thread priority to Thread.MIN_PRIORITY and configures
daemon threads. |
Executable |
Executable.priority(int priority)
Sets the thread priority of the two threads reading from stdout and stderr.
|
Executable |
Executable.stderr(Executable.StreamPumper pumper)
Sets the standard error
Executable.StreamPumper to use. |
Executable |
Executable.stdout(Executable.StreamPumper pumper)
Sets the standard output
Executable.StreamPumper to use. |
Executable |
Executable.stopOnFailure()
If a command returns an
unexpected exit value, no further commands will be run. |
Executable |
Executable.substitute(Map<String,Object> substitutions)
Substitute all
${key} sequences in any command with the corresponding value in
substitutions. |
Executable |
Executable.substitute(String key,
Object value)
Substitute a
${key} sequence in any command with value. |
Executable |
Executable.with(ThreadFactory factory)
Sets the thread factory to use.
|
Copyright © 2011-2013 Johann Burkard. All Rights Reserved.