Package | Description |
---|---|
com.norconex.commons.lang.exec |
Utility classes related to process/code execution.
|
com.norconex.commons.lang.io |
Utility classes when dealing with files and directories.
|
Modifier and Type | Method and Description |
---|---|
void |
SystemCommand.addErrorListener(IInputStreamListener listener)
Adds an error (STDERR) listener to this system command.
|
void |
SystemCommand.addOutputListener(IInputStreamListener listener)
Adds an output (STDOUT) listener to this system command.
|
void |
SystemCommand.removeErrorListener(IInputStreamListener listener)
Removes an error (STDERR) listener.
|
void |
SystemCommand.removeOutputListener(IInputStreamListener listener)
Removes an output (STDOUT) listener.
|
static int |
ExecUtil.watchProcess(Process process,
IInputStreamListener listener)
Watches a running process.
|
static int |
ExecUtil.watchProcess(Process process,
IInputStreamListener[] listeners)
Watches a running process.
|
static int |
ExecUtil.watchProcess(Process process,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches a running process.
|
static int |
ExecUtil.watchProcess(Process process,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches a running process.
|
static int |
ExecUtil.watchProcess(Process process,
IInputStreamListener outputListener,
IInputStreamListener errorListener)
Watches a running process.
|
static int |
ExecUtil.watchProcess(Process process,
InputStream input,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches a running process while sending data to its STDIN.
|
static int |
ExecUtil.watchProcess(Process process,
InputStream input,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches a running process while sending data to its STDIN.
|
static void |
ExecUtil.watchProcessAsync(Process process,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches process output.
|
static void |
ExecUtil.watchProcessAsync(Process process,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches process output.
|
static void |
ExecUtil.watchProcessAsync(Process process,
IInputStreamListener outputListener,
IInputStreamListener errorListener)
Watches process output.
|
static void |
ExecUtil.watchProcessAsync(Process process,
InputStream input,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches process output while sending data to its STDIN.
|
static void |
ExecUtil.watchProcessAsync(Process process,
InputStream input,
IInputStreamListener[] outputListeners,
IInputStreamListener[] errorListeners)
Watches process output while sending data to its STDIN.
|
Modifier and Type | Class and Description |
---|---|
class |
InputStreamLineListener
Listener that is being notified every time a line is processed from a
given stream.
|
Modifier and Type | Method and Description |
---|---|
IInputStreamListener[] |
InputStreamConsumer.getStreamListeners()
Returns stream listeners.
|
Modifier and Type | Method and Description |
---|---|
static void |
InputStreamConsumer.consume(InputStream input,
int chunkSize,
String type,
IInputStreamListener... listeners)
Convenience method for creasing a consumer instance, starting it,
and waiting for it to complete.
|
static void |
InputStreamConsumer.consume(InputStream input,
String type,
IInputStreamListener... listeners)
Convenience method for creasing a consumer instance and starting it.
|
static void |
InputStreamConsumer.consumeAndWait(InputStream input,
int chunkSize,
String type,
IInputStreamListener... listeners)
Convenience method for creasing a consumer instance, starting it,
and waiting for it to complete.
|
static void |
InputStreamConsumer.consumeAndWait(InputStream input,
String type,
IInputStreamListener... listeners)
Convenience method for creasing a consumer instance and starting it.
|
Constructor and Description |
---|
InputStreamConsumer(InputStream input,
int chunkSize,
String type,
IInputStreamListener... listeners)
Constructor.
|
InputStreamConsumer(InputStream input,
String type,
IInputStreamListener... listeners)
Constructor.
|
Copyright © 2008–2021 Norconex Inc.. All rights reserved.