Package org.apache.commons.io.output
Class NullAppendable
- java.lang.Object
-
- org.apache.commons.io.output.NullAppendable
-
- All Implemented Interfaces:
java.lang.Appendable
public class NullAppendable extends java.lang.Object implements java.lang.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 java.lang.Appendable
append(char c)
java.lang.Appendable
append(java.lang.CharSequence csq)
java.lang.Appendable
append(java.lang.CharSequence csq, int start, int end)
-
-
-
Field Detail
-
INSTANCE
public static final NullAppendable INSTANCE
A singleton.
-
-
Method Detail
-
append
public java.lang.Appendable append(char c) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
append
public java.lang.Appendable append(java.lang.CharSequence csq) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
append
public java.lang.Appendable append(java.lang.CharSequence csq, int start, int end) throws java.io.IOException
- Specified by:
append
in interfacejava.lang.Appendable
- Throws:
java.io.IOException
-
-