Package hudson.console
Class LineTransformationOutputStream.Delegating
java.lang.Object
java.io.OutputStream
hudson.console.LineTransformationOutputStream
hudson.console.LineTransformationOutputStream.Delegating
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
MavenConsoleAnnotator
,PlainTextConsoleOutputStream
- Enclosing class:
- LineTransformationOutputStream
public abstract static class LineTransformationOutputStream.Delegating
extends LineTransformationOutputStream
Convenience subclass for cases where you wish to process lines being sent to an underlying stream.
LineTransformationOutputStream.eol(byte[], int)
will typically OutputStream.write(byte[], int, int)
to out
.
Flushing or closing the decorated stream will behave properly.- Since:
- 2.173
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.console.LineTransformationOutputStream
eol, forceEol, trimEOL, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
out
-
-
Constructor Details
-
Delegating
-
-
Method Details
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classLineTransformationOutputStream
- Throws:
IOException
-