Class IgnoreCloseWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- com.cloudbees.jenkins.support.util.IgnoreCloseWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class IgnoreCloseWriter extends FilterWriter
Provides aFilterWriter
that ignores calls to close its underlying writer and instead simply flushes it.- Since:
- TODO
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description IgnoreCloseWriter(Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class java.io.FilterWriter
flush, write, write, write
-
-
-
-
Constructor Detail
-
IgnoreCloseWriter
public IgnoreCloseWriter(@NonNull Writer out)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterWriter
- Throws:
IOException
-
-