|
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.SCMLineStreamMonitor
Line-based implementation of a stream monitor. An abstraction intended for subclass updates when new lines of data (as determined by platform-dependent newline character sequences) have become available.
Constructor Summary | |
SCMLineStreamMonitor()
Constructs a new line stream monitor. |
Method Summary | |
void |
streamBytes(byte[] bytes,
int length,
SCMProcess process)
Updates an underlying buffer and sends line update notifications. |
void |
streamFinished(SCMProcess process)
Clears the last line of data from the buffer. |
protected abstract void |
streamLine(java.lang.String line,
SCMProcess process)
Notifies the monitor subclass that a new line has been read from the stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SCMLineStreamMonitor()
Method Detail |
public final 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.protected abstract void streamLine(java.lang.String line, SCMProcess process) throws SCMStreamMonitorException
line
- the string which has recently been read.process
- the parent process for the stream.
SCMStreamMonitorException
- if the monitor raised an exception, and the stream should be closed.
|
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.