oracle.ide.scm.util.runner
Interface SCMStreamMonitor
- All Known Implementing Classes:
- SCMBufferedStreamMonitor, SCMLineStreamMonitor
- public interface SCMStreamMonitor
Interface to the monitor for a command process. Watches bytes as they are
written to an output stream, and performs finalization when the end of the
stream has been reached (EOF).
Method Summary |
void |
streamBytes(byte[] bytes,
int length,
SCMProcess process)
Notifies the monitor that new bytes has been read from the stream. |
void |
streamFinished(SCMProcess process)
Notifies the monitor that the end of the stream has been reached. |
streamBytes
public void streamBytes(byte[] bytes,
int length,
SCMProcess process)
throws SCMStreamMonitorException
- Notifies the monitor that new bytes has been read from the stream.
The new data has been stored in the given array.
- Parameters:
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.- Throws:
SCMStreamMonitorException
- if the monitor raised an exception, and the stream should be closed.
streamFinished
public void streamFinished(SCMProcess process)
- Notifies the monitor that the end of the stream has been reached.
This provides the monitor with the opportunity to perform finalization.
- Parameters:
process
- the parent process for the stream.