Package: org.codehaus.groovy.control.io

## [Java] Class NullWriter

- org.codehaus.groovy.control.io.NullWriter

-     public class NullWriter
      extends Writer

  A Writer that eats its input.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static NullWriter` | `DEFAULT` | Shared no-op writer instance.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `close()` Closes this writer.
    `` | `public void` | `flush()` Flushes this writer.
    `` | `public void` | `write(char[] cbuf, int off, int len)` Discards the supplied character data.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Writer` | `append, append, append, append, append, append, close, equals, flush, getClass, hashCode, notify, notifyAll, nullWriter, toString, wait, wait, wait, write, write, write, write, write`

- - ### Field Detail

    - #### public static final NullWriter DEFAULT

      Shared no-op writer instance.

  - ### Method Detail

    - #### public void close()

      Closes this writer. No action is performed.

    - #### public void flush()

      Flushes this writer. No action is performed.

    - #### public void write(char[] cbuf, int off, int len)

      Discards the supplied character data.

      Parameters:
        `cbuf` - the source buffer
        `off` - the start offset
        `len` - the number of characters to discard