Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Class
java.io.Writer

Packages that use Writer
java.io Provides for system input and output through data streams, serialization and the file system. 
 

Uses of Writer in java.io
 

Subclasses of Writer in java.io
 class BufferedWriter
          Write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.
 class CharArrayWriter
          This class implements a character buffer that can be used as an Writer.
 class FileWriter
          Convenience class for writing character files.
 class FilterWriter
          Abstract class for writing filtered character streams.
 class OutputStreamWriter
          An OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are translated into bytes according to a specified character encoding.
 class PipedWriter
          Piped character-output streams.
 class PrintWriter
          Print formatted representations of objects to a text-output stream.
 class StringWriter
          A character stream that collects its output in a string buffer, which can then be used to construct a string.
 

Fields in java.io declared as Writer
protected  Writer PrintWriter.out
          The underlying character-output stream of this PrintWriter.
protected  Writer FilterWriter.out
          The underlying character-output stream.
 

Methods in java.io with parameters of type Writer
 void CharArrayWriter.writeTo(Writer out)
          Writes the contents of the buffer to another character stream.
 

Constructors in java.io with parameters of type Writer
BufferedWriter(Writer out)
          Create a buffered character-output stream that uses a default-sized output buffer.
BufferedWriter(Writer out, int sz)
          Create a new buffered character-output stream that uses an output buffer of the given size.
PrintWriter(Writer out)
          Create a new PrintWriter, without automatic line flushing.
PrintWriter(Writer out, boolean autoFlush)
          Create a new PrintWriter.
FilterWriter(Writer out)
          Create a new filtered writer.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.