提交 39c12237 编写于 作者: C CloudBees DEV@Cloud

Merge commit '9fcaa8aa'

......@@ -145,11 +145,24 @@ public class AnnotatedLargeText<T> extends LargeText {
return super.writeLogTo(start,w);
}
/**
* Strips annotations using a {@link PlainTextConsoleOutputStream}.
* @inheritDoc
*/
@Override
public long writeLogTo(long start, OutputStream out) throws IOException {
return super.writeLogTo(start, new PlainTextConsoleOutputStream(out));
}
/**
* Calls {@link LargeText#writeLogTo(long, OutputStream)} without stripping annotations as {@link #writeLogTo(long, OutputStream)} would.
* @inheritDoc
* @since 1.577
*/
public long writeRawLogTo(long start, OutputStream out) throws IOException {
return super.writeLogTo(start, out);
}
public long writeHtmlTo(long start, Writer w) throws IOException {
ConsoleAnnotationOutputStream caw = new ConsoleAnnotationOutputStream(
w, createAnnotator(Stapler.getCurrentRequest()), context, charset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册