Class ConsoleAnnotators
java.lang.Object
org.jenkinsci.plugins.workflow.log.ConsoleAnnotators
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public class ConsoleAnnotators
extends Object
Some utility code extracted from
AnnotatedLargeText
which probably belongs in ConsoleAnnotator
or ConsoleAnnotationOutputStream
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ConsoleAnnotator<T>
createAnnotator
(T context) static void
setAnnotator
(ConsoleAnnotator<?> annotator) What to call at the end of an override ofAnnotatedLargeText.writeHtmlTo(long, java.io.Writer)
.
-
Method Details
-
createAnnotator
What to pass toConsoleAnnotationOutputStream(java.io.Writer, hudson.console.ConsoleAnnotator<? super T>, T, java.nio.charset.Charset)
when overridingAnnotatedLargeText.writeHtmlTo(long, java.io.Writer)
.- Throws:
IOException
-
setAnnotator
What to call at the end of an override ofAnnotatedLargeText.writeHtmlTo(long, java.io.Writer)
.- Throws:
IOException
-