|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.event.SciJavaEvent
org.scijava.console.OutputEvent
public class OutputEvent
An event indicating output occurred on stdout
or stderr
.
NB: This event is published on the calling thread by
ConsoleService.notifyListeners(OutputEvent)
, not on a
dedicated event dispatch thread by the EventService
. This is done to
avoid the overhead of the event service's synchronized pub/sub
implementation, as well as to avoid potential infinite output loops caused by
debugging output surrounding event publication.
Nested Class Summary | |
---|---|
static class |
OutputEvent.Source
Possible output sources. |
Constructor Summary | |
---|---|
OutputEvent(Context context,
OutputEvent.Source source,
String output,
boolean contextual)
Creates a new output event. |
Method Summary | |
---|---|
String |
getOutput()
Gets the output string. |
OutputEvent.Source |
getSource()
Gets the source of the output. |
boolean |
isContextual()
Returns true if the output was produced outside of a specific SciJava Context . |
boolean |
isStderr()
Returns true of the source of the output is stderr . |
boolean |
isStdout()
Returns true of the source of the output is stdout . |
String |
toString()
|
Methods inherited from class org.scijava.event.SciJavaEvent |
---|
consume, getCallingThread, getStackTrace, isConsumed, setCallingThread, setConsumed |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutputEvent(Context context, OutputEvent.Source source, String output, boolean contextual)
source
- The source of the output.output
- The output string.contextual
- Whether the output was produced within this specific
SciJava Context
.Method Detail |
---|
public OutputEvent.Source getSource()
public String getOutput()
public boolean isContextual()
Context
.
public boolean isStdout()
stdout
.
public boolean isStderr()
stderr
.
public String toString()
toString
in class SciJavaEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |