|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.commands.CommandOutputCollector
The collector of commands' output. Temporary disk files are used to store the output to keep a small memory footprint.
Constructor Summary | |
CommandOutputCollector(CommandTask task,
VcsCommandsProvider provider)
|
Method Summary | |
void |
addRegexErrorListener(RegexOutputListener l)
Add the listener to the data error output of the command. |
void |
addRegexErrorListener(RegexOutputListener l,
boolean asynch)
Add the listener to the data error output of the command. |
void |
addRegexOutputListener(RegexOutputListener l)
Add the listener to the data output of the command. |
void |
addRegexOutputListener(RegexOutputListener l,
boolean asynch)
Add the listener to the data output of the command. |
void |
addTextErrorListener(TextOutputListener l)
Add the listener to the error output of the command. |
void |
addTextErrorListener(TextOutputListener l,
boolean asynch)
Add the listener to the error output of the command. |
void |
addTextOutputListener(TextOutputListener l)
Add the listener to the standard output of the command. |
void |
addTextOutputListener(TextOutputListener l,
boolean asynch)
Add the listener to the standard output of the command. |
void |
commandDone(CommandTaskInfo info)
This method is called when the command is done. |
void |
commandPreprocessed(Command cmd,
boolean status)
Called when the preprocessing of the command finished. |
void |
commandPreprocessing(Command cmd)
Called when the command is just to be preprocessed. |
void |
commandStarting(CommandTaskInfo info)
This method is called when the command is just to be started. |
protected void |
finalize()
|
VcsCommandsProvider |
getProvider()
Get the commands provider. |
boolean |
isCmdOutput(int outputId)
Tells whether there is actually some output with the given ID. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandOutputCollector(CommandTask task, VcsCommandsProvider provider)
Method Detail |
public boolean isCmdOutput(int outputId)
outputId
- The output ID: 0 - standard output, 1 - error output,
2 - standard data output, 3 - error data output.public VcsCommandsProvider getProvider()
null
, the listener gets events from all
commands.
getProvider
in interface CommandProcessListener
null
.public void commandPreprocessed(Command cmd, boolean status)
commandPreprocessed
in interface CommandProcessListener
cmd
- The command which was preprocessed.status
- The status of preprocessing. If false, the command is not executed.
Probably never called.public void commandPreprocessing(Command cmd)
commandPreprocessing
in interface CommandProcessListener
public void commandStarting(CommandTaskInfo info)
commandStarting
in interface CommandProcessListener
public void commandDone(CommandTaskInfo info)
commandDone
in interface CommandProcessListener
public void addTextOutputListener(TextOutputListener l)
public void addTextOutputListener(TextOutputListener l, boolean asynch)
asynch
- When true
, the output is passed to the listener asynchronously.
When false
, the listener gets available output
immediately during the addition.public void addTextErrorListener(TextOutputListener l)
public void addTextErrorListener(TextOutputListener l, boolean asynch)
asynch
- When true
, the output is passed to the listener asynchronously.
When false
, the listener gets available output
immediately during the addition.public void addRegexOutputListener(RegexOutputListener l)
public void addRegexOutputListener(RegexOutputListener l, boolean asynch)
asynch
- When true
, the output is passed to the listener asynchronously.
When false
, the listener gets available output
immediately during the addition.public void addRegexErrorListener(RegexOutputListener l)
public void addRegexErrorListener(RegexOutputListener l, boolean asynch)
asynch
- When true
, the output is passed to the listener asynchronously.
When false
, the listener gets available output
immediately during the addition.protected void finalize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |