Package org.apache.commons.io.output
Class NullAppendable
- java.lang.Object
-
- org.apache.commons.io.output.NullAppendable
-
- All Implemented Interfaces:
Appendable
public class NullAppendable extends Object implements Appendable
Appends all data to the famous /dev/null.This Appendable has no destination (file/socket etc.) and all characters written to it are ignored and lost.
- Since:
- 2.8.0
-
-
Field Summary
Fields Modifier and Type Field Description static NullAppendable
INSTANCE
A singleton.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Appendable
append(char c)
Appendable
append(CharSequence csq)
Appendable
append(CharSequence csq, int start, int end)
-
-
-
Field Detail
-
INSTANCE
public static final NullAppendable INSTANCE
A singleton.
-
-
Method Detail
-
append
public Appendable append(char c) throws IOException
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
append
public Appendable append(CharSequence csq) throws IOException
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
append
public Appendable append(CharSequence csq, int start, int end) throws IOException
- Specified by:
append
in interfaceAppendable
- Throws:
IOException
-
-