Package org.apache.taglibs.standard.util
Class UnclosableWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.taglibs.standard.util.UnclosableWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class UnclosableWriter extends Writer
A Writer based on a wrapped Writer but ignoring requests to close() and flush() it. (Someone must have wrapped the toilet in my office similarly...)
-
-
Constructor Summary
Constructors Constructor Description UnclosableWriter(Writer w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)
-
-
-
Constructor Detail
-
UnclosableWriter
public UnclosableWriter(Writer w)
-
-
Method Detail
-
close
public void close()
-
flush
public void flush()
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
-