use of org.apache.derby.shared.common.stream.PrintWriterGetHeader in project derby by apache.
the class SingleStream method makeStream.
//
// class interface
//
/**
* Make the stream; note that service properties override
* application and system properties.
*/
private HeaderPrintWriter makeStream() {
// get the header
PrintWriterGetHeader header = makeHeader();
HeaderPrintWriter hpw = makeHPW(header);
// so use/create the default stream.
if (hpw == null)
hpw = createDefaultStream(header);
return hpw;
}
use of org.apache.derby.shared.common.stream.PrintWriterGetHeader in project derby by apache.
the class BaseMonitor method reportException.
protected void reportException(Throwable t) {
PrintWriterGetHeader pwgh = null;
if (systemStreams != null)
pwgh = systemStreams.stream().getHeader();
ErrorStringBuilder esb = new ErrorStringBuilder(pwgh);
esb.appendln(t.getMessage());
esb.stackTrace(t);
report(esb.get().toString());
}
Aggregations