Package jenkins.util
Class MarkFindingOutputStream
java.lang.Object
java.io.OutputStream
jenkins.util.MarkFindingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Filtering
OutputStream
that looks for MARK
in the output stream and notifies the callback.
The mark itself will be removed from the stream.- Since:
- 1.458
- Author:
- Kohsuke Kawaguchi
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
MARK
- See Also:
-
-
Constructor Details
-
MarkFindingOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
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 classOutputStream
- Throws:
IOException
-
onMarkFound
protected abstract void onMarkFound()
-