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)`

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

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

- - ### Field Detail

    - #### INSTANCE

          public static final NullAppendable INSTANCE

      A singleton.

  - ### Method Detail

    - #### 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`

Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.