Package: org.codehaus.groovy.runtime

## [Java] Class FlushingStreamWriter

- org.codehaus.groovy.runtime.FlushingStreamWriter

-     public class FlushingStreamWriter
      extends OutputStreamWriter

  Stream writer which flushes after each write operation.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `FlushingStreamWriter(OutputStream out)` Constructs a FlushingStreamWriter that flushes on every write.
    `FlushingStreamWriter(OutputStream out, Charset charset)` Constructs a FlushingStreamWriter that flushes on every write.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `write(char[] cbuf, int off, int len)`
    `` | `public void` | `write(int c)`
    `` | `public void` | `write(String str, int off, int len)`

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public FlushingStreamWriter(OutputStream out)

      Constructs a FlushingStreamWriter that flushes on every write.

      throws:
        NullPointerException if out is null
      Parameters:
        `out` - the underlying output stream to write to

    - #### public FlushingStreamWriter(OutputStream out, Charset charset)

      Constructs a FlushingStreamWriter that flushes on every write.

      throws:
        NullPointerException if out or charset is null
      Parameters:
        `out` - the underlying output stream to write to
        `charset` - the charset to encode with
      Since:
        6.0.0

  - ### Method Detail

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

    - #### public void write(int c)

    - #### public void write(String str, int off, int len)