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

JavaTM 2 Platform
Standard Edition

Uses of Class
java.io.Reader

Packages that use Reader
java.io Provides for system input and output through data streams, serialization and the file system. 
java.sql Provides the JDBC package. 
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.html.parser   
javax.swing.text.rtf Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. 
 

Uses of Reader in java.io
 

Subclasses of Reader in java.io
 class BufferedReader
          Read text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
 class CharArrayReader
          This class implements a character buffer that can be used as a character-input stream.
 class FileReader
          Convenience class for reading character files.
 class FilterReader
          Abstract class for reading filtered character streams.
 class InputStreamReader
          An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and translates them into characters according to a specified character encoding.
 class LineNumberReader
          A buffered character-input stream that keeps track of line numbers.
 class PipedReader
          Piped character-input streams.
 class PushbackReader
          A character-stream reader that allows characters to be pushed back into the stream.
 class StringReader
          A character stream whose source is a string.
 

Fields in java.io declared as Reader
protected  Reader FilterReader.in
          The underlying character-input stream, or null if the stream has been closed
 

Constructors in java.io with parameters of type Reader
StreamTokenizer.StreamTokenizer(Reader r)
          Create a tokenizer that parses the given character stream.
FilterReader.FilterReader(Reader in)
          Create a new filtered reader.
PushbackReader.PushbackReader(Reader in, int size)
          Create a new pushback reader with a pushback buffer of the given size.
PushbackReader.PushbackReader(Reader in)
          Create a new pushback reader with a one-character pushback buffer.
BufferedReader.BufferedReader(Reader in, int sz)
          Create a buffering character-input stream that uses an input buffer of the specified size.
BufferedReader.BufferedReader(Reader in)
          Create a buffering character-input stream that uses a default-sized input buffer.
LineNumberReader.LineNumberReader(Reader in)
          Create a new line-numbering reader, using the default input-buffer size.
LineNumberReader.LineNumberReader(Reader in, int sz)
          Create a new line-numbering reader, reading characters into a buffer of the given size.
 

Uses of Reader in java.sql
 

Methods in java.sql that return Reader
 Reader Clob.getCharacterStream()
          Gets the Clob contents as a Unicode stream.
 Reader ResultSet.getCharacterStream(int columnIndex)
          JDBC 2.0
 Reader ResultSet.getCharacterStream(String columnName)
          JDBC 2.0
 Reader SQLInput.readCharacterStream()
          Returns the next attribute in the stream as a stream of Unicode characters.
 

Methods in java.sql with parameters of type Reader
 void PreparedStatement.setCharacterStream(int parameterIndex, Reader reader, int length)
          JDBC 2.0 Sets the designated parameter to the given Reader object, which is the given number of characters long.
 void ResultSet.updateCharacterStream(int columnIndex, Reader x, int length)
          JDBC 2.0 Updates a column with a character stream value.
 void ResultSet.updateCharacterStream(String columnName, Reader reader, int length)
          JDBC 2.0 Updates a column with a character stream value.
 void SQLOutput.writeCharacterStream(Reader x)
          Returns the next attribute to the stream as a stream of Unicode characters.
 

Uses of Reader in javax.swing.text
 

Methods in javax.swing.text with parameters of type Reader
 void JTextComponent.read(Reader in, Object desc)
          Initializes from a stream.
abstract  void EditorKit.read(Reader in, Document doc, int pos)
          Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.
 void DefaultEditorKit.read(Reader in, Document doc, int pos)
          Inserts content from the given stream, which will be treated as plain text.
 

Uses of Reader in javax.swing.text.html
 

Methods in javax.swing.text.html with parameters of type Reader
 void HTMLEditorKit.read(Reader in, Document doc, int pos)
          Inserts content from the given stream.
abstract  void HTMLEditorKit.Parser.parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet)
          Parse the given stream and drive the given callback with the results of the parse.
 void StyleSheet.loadRules(Reader in, URL ref)
          Load a set of rules that have been specified in terms of CSS1 grammar.
 

Uses of Reader in javax.swing.text.html.parser
 

Methods in javax.swing.text.html.parser with parameters of type Reader
 void Parser.parse(Reader in)
          Parse an HTML stream, given a DTD.
 void ParserDelegator.parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet)
           
 void DocumentParser.parse(Reader in, HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet)
           
 

Uses of Reader in javax.swing.text.rtf
 

Methods in javax.swing.text.rtf with parameters of type Reader
 void RTFEditorKit.read(Reader in, Document doc, int pos)
          Insert content from the given stream, which will be treated 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.