JavaTM 2 Platform
Standard Ed. 5.0

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. 
java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. 
java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language. 
javax.sql.rowset Standard interfaces and base classes for JDBC RowSet implementations. 
javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language. 
javax.sql.rowset.spi The standard classes and interfaces that a third party vendor has to use in its implementation of a synchronization provider. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.html Provides the class HTMLEditorKit and supporting classes for creating HTML text editors. 
javax.swing.text.rtf Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. 
javax.xml.transform.stream This package implements stream- and URI- specific transformation APIs. 
org.w3c.dom.ls   
 

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 encoded into bytes using a specified charset.
 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 FilterWriter.out
          The underlying character-output stream.
protected  Writer PrintWriter.out
          The underlying character-output stream of this PrintWriter.
 

Methods in java.io that return Writer
 Writer Writer.append(char c)
          Appends the specified character to this writer.
 Writer Writer.append(CharSequence csq)
          Appends the specified character sequence to this writer.
 Writer Writer.append(CharSequence csq, int start, int end)
          Appends a subsequence of the specified character sequence to this writer.
 

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.
FilterWriter(Writer out)
          Create a new filtered writer.
PrintWriter(Writer out)
          Create a new PrintWriter, without automatic line flushing.
PrintWriter(Writer out, boolean autoFlush)
          Create a new PrintWriter.
 

Uses of Writer in java.nio.channels
 

Methods in java.nio.channels that return Writer
static Writer Channels.newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap)
          Constructs a writer that encodes characters using the given encoder and writes the resulting bytes to the given channel.
static Writer Channels.newWriter(WritableByteChannel ch, String csName)
          Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.
 

Uses of Writer in java.sql
 

Methods in java.sql that return Writer
 Writer Clob.setCharacterStream(long pos)
          Retrieves a stream to be used to write a stream of Unicode characters to the CLOB value that this Clob object represents, at position pos.
 

Uses of Writer in javax.sql.rowset
 

Methods in javax.sql.rowset with parameters of type Writer
 void WebRowSet.writeXml(ResultSet rs, Writer writer)
          Populates this WebRowSet object with the contents of the given ResultSet object and writes its data, properties, and metadata to the given Writer object in XML format.
 void WebRowSet.writeXml(Writer writer)
          Writes the data, properties, and metadata for this WebRowSet object to the given Writer object in XML format.
 

Uses of Writer in javax.sql.rowset.serial
 

Methods in javax.sql.rowset.serial that return Writer
 Writer SerialClob.setCharacterStream(long pos)
          Retrieves a stream to be used to write a stream of Unicode characters to the CLOB value that this SerialClob object represents, at position pos.
 

Uses of Writer in javax.sql.rowset.spi
 

Methods in javax.sql.rowset.spi with parameters of type Writer
 void XmlWriter.writeXML(WebRowSet caller, Writer writer)
          Writes the given WebRowSet object to the specified java.io.Writer output stream as an XML document.
 

Uses of Writer in javax.swing.text
 

Methods in javax.swing.text that return Writer
protected  Writer AbstractWriter.getWriter()
          Returns the Writer that is used to output the content.
 

Methods in javax.swing.text with parameters of type Writer
 void JTextComponent.write(Writer out)
          Stores the contents of the model into the given stream.
 void DefaultEditorKit.write(Writer out, Document doc, int pos, int len)
          Writes content from a document to the given stream as plain text.
abstract  void EditorKit.write(Writer out, Document doc, int pos, int len)
          Writes content from a document to the given stream in a format appropriate for this kind of content handler.
 

Constructors in javax.swing.text with parameters of type Writer
AbstractWriter(Writer w, Document doc)
          Creates a new AbstractWriter.
AbstractWriter(Writer w, Document doc, int pos, int len)
          Creates a new AbstractWriter.
AbstractWriter(Writer w, Element root)
          Creates a new AbstractWriter.
AbstractWriter(Writer w, Element root, int pos, int len)
          Creates a new AbstractWriter.
 

Uses of Writer in javax.swing.text.html
 

Methods in javax.swing.text.html with parameters of type Writer
 void HTMLEditorKit.write(Writer out, Document doc, int pos, int len)
          Write content from a document to the given stream in a format appropriate for this kind of content handler.
 

Constructors in javax.swing.text.html with parameters of type Writer
HTMLWriter(Writer w, HTMLDocument doc)
          Creates a new HTMLWriter.
HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
          Creates a new HTMLWriter.
MinimalHTMLWriter(Writer w, StyledDocument doc)
          Creates a new MinimalHTMLWriter.
MinimalHTMLWriter(Writer w, StyledDocument doc, int pos, int len)
          Creates a new MinimalHTMLWriter.
 

Uses of Writer in javax.swing.text.rtf
 

Methods in javax.swing.text.rtf with parameters of type Writer
 void RTFEditorKit.write(Writer out, Document doc, int pos, int len)
          Write content from a document to the given stream as plain text.
 

Uses of Writer in javax.xml.transform.stream
 

Methods in javax.xml.transform.stream that return Writer
 Writer StreamResult.getWriter()
          Get the character stream that was set with setWriter.
 

Methods in javax.xml.transform.stream with parameters of type Writer
 void StreamResult.setWriter(Writer writer)
          Set the writer that is to receive the result.
 

Constructors in javax.xml.transform.stream with parameters of type Writer
StreamResult(Writer writer)
          Construct a StreamResult from a character stream.
 

Uses of Writer in org.w3c.dom.ls
 

Methods in org.w3c.dom.ls that return Writer
 Writer LSOutput.getCharacterStream()
          An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.
 

Methods in org.w3c.dom.ls with parameters of type Writer
 void LSOutput.setCharacterStream(Writer characterStream)
          An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.
 


JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.