|
JDeveloper SCM API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.scm.util.runner.SCMBufferedStreamMonitor
Buffered implementation of a stream monitor. Stores all data read from the stream and makes buffer contents accessible at any time, while the process is alive or after it has finished, as a string.
Field Summary | |
protected java.lang.StringBuffer |
m_buffer
|
Constructor Summary | |
SCMBufferedStreamMonitor()
Constructs a new buffered stream monitor with a new buffer. |
|
SCMBufferedStreamMonitor(java.lang.StringBuffer buffer)
Constructs a buffered stream monitor with an existing buffer. |
Method Summary | |
protected void |
clearBuffer()
Clears the monitor's stream buffer. |
java.lang.String |
getBufferText()
Obtains the contents of the buffer as a string. |
void |
streamBytes(byte[] bytes,
int length,
SCMProcess process)
Adds all new data to the buffer of the monitor. |
void |
streamFinished(SCMProcess process)
Performs no actions as finalization is not required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.lang.StringBuffer m_buffer
Constructor Detail |
public SCMBufferedStreamMonitor()
public SCMBufferedStreamMonitor(java.lang.StringBuffer buffer)
buffer
- the monitor's stream buffer.Method Detail |
public void streamBytes(byte[] bytes, int length, SCMProcess process) throws SCMStreamMonitorException
streamBytes
in interface SCMStreamMonitor
bytes
- the array containing recently read data, from index 0.length
- the length, in bytes, of the data that has been read.process
- the parent process for the stream.
SCMStreamMonitorException
- if the monitor raised an exception, and the stream should be closed.public void streamFinished(SCMProcess process)
streamFinished
in interface SCMStreamMonitor
process
- the parent process for the stream.public java.lang.String getBufferText()
protected void clearBuffer()
|
Copyright © 2002 Oracle Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.