Package org.jvnet.hudson.test
Class PrefixedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- hudson.console.LineTransformationOutputStream.Delegating
-
- org.jvnet.hudson.test.PrefixedOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public final class PrefixedOutputStream extends hudson.console.LineTransformationOutputStream.Delegating
DecoratingOutputStream
which prefixes lines of text with an identifier and optional color. (Does not include a timestamp, since typically something likeSupportLogFormatter
should already cover that.)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PrefixedOutputStream.AnsiColor
static class
PrefixedOutputStream.Builder
static class
PrefixedOutputStream.Color
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrefixedOutputStream.Builder
builder()
protected void
eol(byte[] b, int len)
-
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Method Detail
-
builder
public static PrefixedOutputStream.Builder builder()
-
eol
protected void eol(byte[] b, int len) throws IOException
- Specified by:
eol
in classhudson.console.LineTransformationOutputStream
- Throws:
IOException
-
-