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
Decorating
OutputStream
which prefixes lines of text with an identifier and optional color.
(Does not include a timestamp, since typically something like SupportLogFormatter
should already cover that.)-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static final class
static enum
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
hudson.console.LineTransformationOutputStream.Delegating
-
Field Summary
Fields inherited from class hudson.console.LineTransformationOutputStream.Delegating
out
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixedOutputStream.Builder
builder()
protected void
eol
(byte[] b, int len) Methods inherited from class hudson.console.LineTransformationOutputStream.Delegating
close, flush
Methods inherited from class hudson.console.LineTransformationOutputStream
forceEol, trimEOL, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Method Details
-
builder
-
eol
- Specified by:
eol
in classhudson.console.LineTransformationOutputStream
- Throws:
IOException
-