站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.io.Writer - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

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. 
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. 
 

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
          Write characters to an output stream, translating characters 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 FilterWriter.out
          The underlying character-output stream.
protected  Writer PrintWriter.out
          The underlying character-output stream of this PrintWriter.
 

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
FilterWriter.FilterWriter(Writer out)
          Create a new filtered writer.
PrintWriter.PrintWriter(Writer out)
          Create a new PrintWriter, without automatic line flushing.
PrintWriter.PrintWriter(Writer out, boolean autoFlush)
          Create a new PrintWriter.
BufferedWriter.BufferedWriter(Writer out)
          Create a buffered character-output stream that uses a default-sized output buffer.
BufferedWriter.BufferedWriter(Writer out, int sz)
          Create a new buffered character-output stream that uses an output buffer of the given size.
 

Uses of Writer in javax.swing.text
 

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.
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.
 void DefaultEditorKit.write(Writer out, Document doc, int pos, int len)
          Writes content from a document to the given stream as plain text.
 

Constructors in javax.swing.text with parameters of type Writer
AbstractWriter.AbstractWriter(Writer w, Document doc)
          Creates a new AbstractWriter.
AbstractWriter.AbstractWriter(Writer w, Document doc, int pos, int len)
          Creates a new AbstractWriter.
AbstractWriter.AbstractWriter(Writer w, Element root)
          Creates a new AbstractWriter.
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
MinimalHTMLWriter.MinimalHTMLWriter(Writer w, StyledDocument doc)
          Creates a new MinimalHTMLWriter.
MinimalHTMLWriter.MinimalHTMLWriter(Writer w, StyledDocument doc, int pos, int len)
          Creates a new MinimalHTMLWriter.
HTMLWriter.HTMLWriter(Writer w, HTMLDocument doc)
          Creates a new HTMLWriter.
HTMLWriter.HTMLWriter(Writer w, HTMLDocument doc, int pos, int len)
          Creates a new HTMLWriter.
 

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.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.