API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. Writer View Source
Author(s)
Mark Reinhold
Since
JDK1.1
Version
1.29, 05/11/17
Serial
Hierarchy
 Object
      Writer
Implements
 Appendable
 Closeable
 Flushable
Subclasses
Description
publicabstract abstract class Writer
  Abstract class for writing to character streams.
Constructors
protected Writer ()
Creates a new character-stream writer whose critical sections will synchronize on the writer itself.
protected Writer (Object lock)
  Creates a new character-stream writer whose critical sections will synchronize on the given object.
Methods
Hide/Show inherited methods
public Writer append (char c) throws IOException [Specified in Appendable]
  Appends the specified character to this writer.
public Writer append (CharSequence csq) throws IOException [Specified in Appendable]
  Appends the specified character sequence to this writer.
public Writer append (CharSequence csq, int start, int end) throws IOException [Specified in Appendable]
  Appends a subsequence of the specified character sequence to this writer.
publicabstract void close () throws IOException [Specified in Closeable]
  Closes the stream, flushing it first.
publicabstract void flush () throws IOException [Specified in Flushable]
  Flushes the stream.
public void write (char[] cbuf) throws IOException
  Writes an array of characters.
publicabstract void write (char[] cbuf, int off, int len) throws IOException
  Writes a portion of an array of characters.
public void write (int c) throws IOException
  Writes a single character.
public void write (String str) throws IOException
  Writes a string.
public void write (String str, int off, int len) throws IOException
  Writes a portion of a string.
Fields
Hide/Show inherited fields
protected Object lock
  The object used to synchronize operations on this stream.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar