|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.debug.internal.core.model.OutputStreamMonitor
public class OutputStreamMonitor
Monitors the output stream of a system process and notifies listeners of additions to the stream. The output stream monitor reads system out (or err) via and input stream.
| Constructor Summary | |
|---|---|
OutputStreamMonitor(java.io.InputStream stream)
Creates an output stream monitor on the given stream (connected to system out or err). |
|
| Method Summary | |
|---|---|
void |
addListener(org.eclipse.debug.core.IStreamListener listener)
|
protected void |
close()
Causes the monitor to close all communications between it and the underlying stream by waiting for the thread to terminate. |
void |
flushContents()
|
java.lang.String |
getContents()
|
boolean |
isBuffered()
|
protected void |
kill()
|
void |
removeListener(org.eclipse.debug.core.IStreamListener listener)
|
void |
setBuffered(boolean buffer)
|
void |
startMonitoring()
Starts a thread which reads from the stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStreamMonitor(java.io.InputStream stream)
| Method Detail |
|---|
public void addListener(org.eclipse.debug.core.IStreamListener listener)
addListener in interface org.eclipse.debug.core.model.IStreamMonitorprotected void close()
public java.lang.String getContents()
getContents in interface org.eclipse.debug.core.model.IStreamMonitorprotected void kill()
public void removeListener(org.eclipse.debug.core.IStreamListener listener)
removeListener in interface org.eclipse.debug.core.model.IStreamMonitorpublic void startMonitoring()
public void setBuffered(boolean buffer)
setBuffered in interface org.eclipse.debug.core.model.IFlushableStreamMonitorIFlushableStreamMonitor.setBuffered(boolean)public void flushContents()
flushContents in interface org.eclipse.debug.core.model.IFlushableStreamMonitorIFlushableStreamMonitor.flushContents()public boolean isBuffered()
isBuffered in interface org.eclipse.debug.core.model.IFlushableStreamMonitorIFlushableStreamMonitor.isBuffered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||