public class StreamChangeListener extends java.lang.Object implements ChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected java.io.PrintStream |
_output
The PrintStream that we direct the output to.
|
| Constructor and Description |
|---|
StreamChangeListener()
Create a change listener that sends messages to the standard output.
|
StreamChangeListener(java.io.OutputStream out)
Create a change listener that sends messages to the specified stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeExecuted(ChangeRequest change)
Print the description of the change to the stream output.
|
void |
changeFailed(ChangeRequest change,
java.lang.Exception exception)
Print the description of the failure to the stream output.
|
protected java.io.PrintStream _output
public StreamChangeListener()
public StreamChangeListener(java.io.OutputStream out)
out - The stream to send messages to.public void changeExecuted(ChangeRequest change)
changeExecuted in interface ChangeListenerchange - The change that has been executed.public void changeFailed(ChangeRequest change, java.lang.Exception exception)
changeFailed in interface ChangeListenerchange - The change that has been executed.exception - The exception that occurred.