diff --git a/core/src/main/java/hudson/console/AnnotatedLargeText.java b/core/src/main/java/hudson/console/AnnotatedLargeText.java index 4a3af765bdd04dd2831a451db7ccb5cd4d45c631..89e307bf22df8a46ad4e97dc0acc09bda283eedf 100644 --- a/core/src/main/java/hudson/console/AnnotatedLargeText.java +++ b/core/src/main/java/hudson/console/AnnotatedLargeText.java @@ -145,11 +145,24 @@ public class AnnotatedLargeText 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);