Package hudson.plugins.timestamper
Class TimestampNotesOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.console.LineTransformationOutputStream
-
- hudson.plugins.timestamper.TimestampNotesOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class TimestampNotesOutputStream extends LineTransformationOutputStream
Output stream that writes each line to the provided delegate output stream after inserting aTimestampNote
.- Author:
- Steven G. Brown
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream
LineTransformationOutputStream.Delegating
-
-
Constructor Summary
Constructors Constructor Description TimestampNotesOutputStream(OutputStream delegate, long buildStartTime)
Create a newTimestampNotesOutputStream
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
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
flush, nullOutputStream, write
-
-
-
-
Constructor Detail
-
TimestampNotesOutputStream
public TimestampNotesOutputStream(OutputStream delegate, long buildStartTime)
Create a newTimestampNotesOutputStream
.- Parameters:
delegate
- the delegate output streambuildStartTime
- the build start time
-
-
Method Detail
-
eol
protected void eol(byte[] b, int len) throws IOException
- Specified by:
eol
in classLineTransformationOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classLineTransformationOutputStream
- Throws:
IOException
-
-