|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.controlcomputer.InputReaderThread
public class InputReaderThread
Constructor Summary | |
---|---|
InputReaderThread(java.io.InputStream inputStream)
Sets up and starts running the reader, plugging everything back into the vector addLinesToThisVector |
|
InputReaderThread(java.io.InputStream inputStream,
java.lang.Runnable runWhenDone)
Sets up and starts running the reader, plugging everything back into the vector addLinesToThisVector |
Method Summary | |
---|---|
int |
findTextInOutput(java.lang.String find,
int lineToStartOn)
|
java.util.Vector |
findTextInOutput(java.lang.String find,
int lineToStartOn,
int characterOnLineToStartAt)
|
int |
getCurrentReadCharacter()
|
int |
getCurrentReadLine()
|
java.lang.String |
getDescriptorString()
|
java.lang.String |
getLinesString()
|
java.lang.String |
getLinesStringWithLineNumbers()
|
java.util.Vector |
getLinesVector()
|
javax.swing.text.JTextComponent |
getTextComponentToUpdate()
this is for debugging purposes |
int |
haveFoundAnyOfTheseYet(java.lang.String[] waitFor)
|
boolean |
isRunning()
|
void |
run()
|
void |
setCurrentReadCharacter(int i)
|
void |
setCurrentReadLine(int i)
|
void |
setCurrentReadToHere()
Clear the reading point to this point, so that it won't search for stuff that came from previous commands to this thread. |
void |
setDescriptorString(java.lang.String string)
|
void |
setTextComponentToUpdate(javax.swing.text.JTextComponent component)
this is for debugging purposes |
void |
setThreadShouldDie(boolean shouldDie)
|
int |
waitForResponse(java.lang.String[] waitFor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputReaderThread(java.io.InputStream inputStream)
public InputReaderThread(java.io.InputStream inputStream, java.lang.Runnable runWhenDone)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public boolean isRunning()
public java.util.Vector getLinesVector()
public java.lang.String getLinesString()
public java.lang.String getLinesStringWithLineNumbers()
public int getCurrentReadCharacter()
public int getCurrentReadLine()
public void setCurrentReadCharacter(int i)
public void setCurrentReadLine(int i)
public void setCurrentReadToHere()
public javax.swing.text.JTextComponent getTextComponentToUpdate()
public void setTextComponentToUpdate(javax.swing.text.JTextComponent component)
public void setThreadShouldDie(boolean shouldDie)
public java.util.Vector findTextInOutput(java.lang.String find, int lineToStartOn, int characterOnLineToStartAt)
find
- lineToStartOn
- characterOnLine
-
public int findTextInOutput(java.lang.String find, int lineToStartOn)
public int haveFoundAnyOfTheseYet(java.lang.String[] waitFor)
public int waitForResponse(java.lang.String[] waitFor)
public java.lang.String getDescriptorString()
public void setDescriptorString(java.lang.String string)
string
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |