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 fromAnnotatedLargeText
which probably belongs inConsoleAnnotator
orConsoleAnnotationOutputStream
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
createAnnotator
public static <T> ConsoleAnnotator<T> createAnnotator(T context) throws IOException
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
public static void setAnnotator(ConsoleAnnotator<?> annotator) throws IOException
What to call at the end of an override ofAnnotatedLargeText.writeHtmlTo(long, java.io.Writer)
.- Throws:
IOException
-
-