|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.jtools.LogContents
dirk_krause.jtools.LogContentsForCommand
public class LogContentsForCommand
This class executes one or multiple commands and saves output to show it in a LogWindow.
Field Summary | |
---|---|
static java.lang.String[] |
msgTexts
Some text fragments needed to build the log text. |
Fields inherited from class dirk_krause.jtools.LogContents |
---|
showAlways, success, textLines, theTexts |
Constructor Summary | |
---|---|
LogContentsForCommand()
Default constructor. |
Method Summary | |
---|---|
void |
addArgv(java.lang.String s)
Add a string to the command line string collection (command first, arguments follow). |
java.util.Iterator<java.lang.String> |
getIterator()
Create an iterator to traverse output line by line. |
void |
newCommand()
Prepare to start a new command. |
void |
run()
Run the command and save output, build a log text to be shown in a LogWindow. |
void |
setDirectory(java.lang.String d)
Set directory in which the command is executed. |
Methods inherited from class dirk_krause.jtools.LogContents |
---|
add, cleanup, getContents, getShowAlways, getSuccess, setShowAlways |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] msgTexts
Constructor Detail |
---|
public LogContentsForCommand()
Method Detail |
---|
public void newCommand()
public void setDirectory(java.lang.String d)
d
- Directory name.public void addArgv(java.lang.String s)
s
- The string to add.public void run()
public java.util.Iterator<java.lang.String> getIterator()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |