| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private StringBuffer | |
| private BufferedReader | |
| private String | |
| private boolean | |
| private boolean | |
| private List | |
| private List | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addTrigger(String str, int value)
Adds a "trigger", which the stream watches for and, if seen, reports the trigger value of via the getTriggers() method. |
| public boolean | addTrigger(String[] strs, int value)
Adds a "trigger", which the stream watches for and, if seen, reports the trigger value of via the getTriggers() method. |
| public synchronized List | getTriggersSeen()
Returns an List of java.lang.Integer objects indicating the values of the triggers seen since the last call to getTriggersSeen. |
| public boolean | |
| public boolean | |
| public void | |
| public synchronized void | |
| public synchronized String | |
| public synchronized boolean |
| captureBuffer | back to summary |
|---|---|
| private StringBuffer captureBuffer | |
| input | back to summary |
|---|---|
| private BufferedReader input | |
| prefixString | back to summary |
|---|---|
| private String prefixString | |
| printContents | back to summary |
|---|---|
| private boolean printContents | |
| printStreamContents | back to summary |
|---|---|
| private boolean printStreamContents | |
| triggers | back to summary |
|---|---|
| private List<StreamMonitor. | |
| triggersSeen | back to summary |
|---|---|
| private List<Integer> triggersSeen | |
| waitString | back to summary |
|---|---|
| private String waitString | |
| waitStringSeen | back to summary |
|---|---|
| private boolean waitStringSeen | |
| StreamMonitor | back to summary |
|---|---|
| public StreamMonitor(InputStream istr) Equivalent to StreamMonitor(istr, null, false) | |
| StreamMonitor | back to summary |
|---|---|
| public StreamMonitor(InputStream istr, String prefixString, boolean printContents) | |
| addTrigger | back to summary |
|---|---|
| public boolean addTrigger(String str, int value) Adds a "trigger", which the stream watches for and, if seen, reports the trigger value of via the getTriggers() method. Returns true if the addition was successful, false if the string was already present as a trigger. | |
| addTrigger | back to summary |
|---|---|
| public boolean addTrigger(String[] strs, int value) Adds a "trigger", which the stream watches for and, if seen, reports the trigger value of via the getTriggers() method. Returns true if the addition was successful, false if the string was already present as a trigger. | |
| getTriggersSeen | back to summary |
|---|---|
| public synchronized List Returns an List of java.lang.Integer objects indicating the values of the triggers seen since the last call to getTriggersSeen. If there were no triggers seen, returns an empty list; does not return null. | |
| removeTrigger | back to summary |
|---|---|
| public boolean removeTrigger(String str) Removes a previously added trigger. Returns true if it was present, false if not. | |
| removeTrigger | back to summary |
|---|---|
| public boolean removeTrigger(String[] strs) Removes a previously added trigger. Returns true if it was present, false if not. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| startCapture | back to summary |
|---|---|
| public synchronized void startCapture() | |
| stopCapture | back to summary |
|---|---|
| public synchronized String stopCapture() | |
| waitFor | back to summary |
|---|---|
| public synchronized boolean waitFor(String str, long millis) Waits for the specified string to come in for the given period of time (measured in milliseconds). | |
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv boolean |
| triggerStrings | back to summary |
|---|---|
| private String[] triggerStrings | |
| triggerVal | back to summary |
|---|---|
| private int triggerVal | |
| Trigger | back to summary |
|---|---|
| pack-priv Trigger(String str, int val) | |
| Trigger | back to summary |
|---|---|
| pack-priv Trigger(String[] strs, int val) | |
| equals | back to summary |
|---|---|
| pack-priv boolean equals(String[] strs) | |
| matches | back to summary |
|---|---|
| pack-priv boolean matches(String str) | |