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
Writerthat 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 voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
write
public void write(@NonNull char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-