← 返回首页
Writer (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. lock
  6. Constructor Details
    1. Writer()
    2. Writer(Object)
  7. Method Details
    1. nullWriter()
    2. write(int)
    3. write(char[])
    4. write(char[], int, int)
    5. write(String)
    6. write(String, int, int)
    7. append(CharSequence)
    8. append(CharSequence, int, int)
    9. append(char)
    10. flush()
    11. close()
Hide sidebar  Show sidebar

Class Writer

java.lang.Object
java.io.Writer
All Implemented Interfaces: Closeable, Flushable, Appendable, AutoCloseable Direct Known Subclasses: BufferedWriter, CharArrayWriter, FilterWriter, OutputStreamWriter, PipedWriter, PrintWriter, StringWriter
public abstract class Writer extends Object implements Appendable, Closeable, Flushable
Abstract class for writing to character streams. The only methods that a subclass must implement are write(char[], int, int), flush(), and close(). Most subclasses, however, will override some of the methods defined here in order to provide higher efficiency, additional functionality, or both.
Since: 1.1 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.