All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Direct Known Subclasses:
BufferedWriter, CharArrayWriter, FilterWriter, OutputStreamWriter, PipedWriter, PrintWriter, StringWriter

  • Field Summary

    Fields

    The object used to synchronize operations on this stream.

  • Constructor Summary

    Constructors

    protected

    Writer()

    Creates a new character-stream writer whose critical sections will synchronize on the writer itself.

    protected

    Creates a new character-stream writer whose critical sections will synchronize on the given object.

  • Method Summary

    append(char c)

    Appends the specified character to this writer.

    Appends the specified character sequence to this writer.

    Appends a subsequence of the specified character sequence to this writer.

    abstract void

    close()

    Closes the stream, flushing it first.

    abstract void

    flush()

    Returns a new Writer which discards all characters.

    void

    write(char[] cbuf)

    Writes an array of characters.

    abstract void

    write(char[] cbuf, int off, int len)

    Writes a portion of an array of characters.

    void

    write(int c)

    Writes a single character.

    void

    void

    write(String str, int off, int len)

    Writes a portion of a string.

  • Field Details

    • lock

  • Constructor Details

    • Writer

    • Writer

  • Method Details

    • nullWriter

    • write

    • write

    • write

    • write

    • write

    • append

    • append

    • append

    • flush

    • close