Package jenkins.util
Class ScriptListener.ListenerWriter
- java.lang.Object
-
- java.io.Writer
-
- jenkins.util.ScriptListener.ListenerWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing interface:
- ScriptListener
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static class ScriptListener.ListenerWriter extends Writer
Writer
that callsScriptListener.fireScriptOutput(String, Object, Object, String, hudson.model.User)
with the output it writes to the wrappedWriter
, and otherwise just forwardsflush()
andclose()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
write
public void write(@NonNull char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
-