Package jenkins.util
Class MarkFindingOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- jenkins.util.MarkFindingOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public abstract class MarkFindingOutputStream extends OutputStream
FilteringOutputStreamthat looks forMARKin the output stream and notifies the callback. The mark itself will be removed from the stream.- Since:
- 1.458
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarkFindingOutputStream(OutputStream base)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()protected abstract voidonMarkFound()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Field Detail
-
MARK
public static final String MARK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MarkFindingOutputStream
protected MarkFindingOutputStream(OutputStream base)
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
onMarkFound
protected abstract void onMarkFound()
-
-