Package net.markenwerk.commons.nulls
Class NullWriter
- java.lang.Object
-
- java.io.Writer
-
- net.markenwerk.commons.nulls.NullWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class NullWriter extends Writer
ANullWriteris aWriterthat does nothing.- Since:
- 1.0.0
- Author:
- Torsten Krause (tk at markenwerk dot net)
-
-
Constructor Summary
Constructors Constructor Description NullWriter()Creates a newNullWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] buffer, int offset, int length)
-
-
-
Constructor Detail
-
NullWriter
public NullWriter()
Creates a newNullWriter.
-
-
Method Detail
-
write
public void write(char[] buffer, int offset, int length) 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
-
-