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 calls ScriptListener.fireScriptOutput(String, Object, Object, String, hudson.model.User)
with the
output it writes to the wrapped Writer
, and otherwise just forwards flush()
and close()
.-
Constructor Details
-
ListenerWriter
-
-
Method Details
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-