Interface DualStreamToolOutput
- All Superinterfaces:
ToolOutput
- All Known Implementing Classes:
DualOutputStreamOutput
,NamedDualStreamToolOutput
,SingleDualOutputStreamOutput
,StderrLog
,StringLog
This is special case of output - for log and trace outputs form compilation, not for bytecode/sources themselves.
Historically, asmtools had duals stream logger, where tracing was polluting stdout.
This logic is by default off, but can be turned on by secret switch if needed.
For application, although logging is still done in two streams, the log is united into stderr via StderrLog.
UnitTest and 3rd party applications such as IDE or instrumentation providers s should be using unified StringLog.
Once (if ever) the historical dependants on duality of log are removed, the logger should be simple and direct to a single buffer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault DataOutputStream
void
printe
(char line) void
void
void
stacktrace
(Throwable ex) Methods inherited from interface org.openjdk.asmtools.common.outputs.ToolOutput
finishClass, flush, getCurrentClassName, printlns, prints, prints, startClass
-
Method Details
-
printlne
-
printe
-
printe
void printe(char line) -
stacktrace
-
getSToolObject
ToolOutput getSToolObject() -
getEToolObject
ToolOutput getEToolObject() -
getDataOutputStream
- Specified by:
getDataOutputStream
in interfaceToolOutput
- Throws:
FileNotFoundException
-