Package freemarker.template.utility
Class NullWriter
java.lang.Object
java.io.Writer
freemarker.template.utility.NullWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
A
Writer
that simply drops what it gets.- Since:
- 2.3.20
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend(char c)
append(CharSequence csq)
append(CharSequence csq, int start, int end)
void
close()
void
flush()
void
write(char[] cbuf)
void
write(char[] cbuf, int off, int len)
void
write(int c)
void
void
Methods inherited from class java.io.Writer
nullWriter
-
Field Details
-
INSTANCE
-
-
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
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-