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 final NullAppendable`
  `INSTANCE`
  A singleton.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Appendable`
  `append(char c)`
  `Appendable`
  `append(CharSequence csq)`
  `Appendable`
  `append(CharSequence csq, int start, int end)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### INSTANCE

    public static final NullAppendable INSTANCE
    A singleton.

- ## Method Details

  - ### append

    public Appendable append(char c) throws IOException
    Specified by:
      `append` in interface `Appendable`
    Throws:
      `IOException`

  - ### append

    public Appendable append(CharSequence csq) throws IOException
    Specified by:
      `append` in interface `Appendable`
    Throws:
      `IOException`

  - ### append

    public Appendable append(CharSequence csq, int start, int end) throws IOException
    Specified by:
      `append` in interface `Appendable`
    Throws:
      `IOException`