public final class NullOutputReceiver extends java.lang.Object implements IShellOutputReceiver
IShellOutputReceiver that does nothing.
This can be used to execute a remote shell command when the output is not needed.
| Constructor and Description |
|---|
NullOutputReceiver() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOutput(byte[] data,
int offset,
int length)
Called every time some new data is available.
|
void |
flush()
Called at the end of the process execution (unless the process was
canceled).
|
static IShellOutputReceiver |
getReceiver() |
boolean |
isCancelled()
Cancel method to stop the execution of the remote shell command.
|
public static IShellOutputReceiver getReceiver()
public void addOutput(byte[] data,
int offset,
int length)
IShellOutputReceiveraddOutput in interface IShellOutputReceiverdata - The new data.offset - The offset at which the new data starts.length - The length of the new data.public void flush()
IShellOutputReceiverflush in interface IShellOutputReceiverpublic boolean isCancelled()
IShellOutputReceiverisCancelled in interface IShellOutputReceiver