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 and Description static NullAppendable
INSTANCE
A singleton.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and 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
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.