Uses of Class
java.io.Reader

Packages that useReader
Package
Description
java.awt.datatransfer
Provides interfaces and classes for transferring data between and within applications.
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 Java programming language.
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
javax.print
Provides the principal classes and interfaces for the Java Print Service API.
javax.script
The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
javax.sql
Provides the API for server side data source access and processing from the Java programming language.
javax.sql.rowset
Standard interfaces and base classes for JDBCRowSet 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 classHTMLEditorKit and supporting classes for creating HTML text editors.
javax.swing.text.html.parser
Provides the default HTML parser, along with support classes.
javax.swing.text.rtf
Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors.
javax.tools
Provides interfaces for tools which can be invoked from a program, for example, compilers.
javax.xml.stream
Defines interfaces and classes for the Streaming API for XML (StAX).
javax.xml.transform.stream
Provides stream and URI specific transformation classes.
jdk.jfr
This package provides classes to create events and control Flight Recorder.
jdk.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
org.w3c.dom.ls
Provides interfaces for DOM Level 3 Load and Save.
org.xml.sax
Provides the interfaces for the Simple API for XML (SAX).
  • Uses ofReader injava.awt.datatransfer

    Methods injava.awt.datatransfer that returnReader
    Modifier and Type
    Method
    Description
    DataFlavor.getReaderForText(Transferable transferable)
    Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding).
  • Uses ofReader injava.io

    Subclasses ofReader injava.io
    Modifier and Type
    Class
    Description
    class 
    Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
    class 
    This class implements a character buffer that can be used as a character-input stream.
    class 
    Reads text from character files using a default buffer size.
    class 
    Abstract class for reading filtered character streams.
    class 
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specifiedcharset.
    class 
    A buffered character-input stream that keeps track of line numbers.
    class 
    Piped character-input streams.
    class 
    A character-stream reader that allows characters to be pushed back into the stream.
    class 
    A character stream whose source is a string.
    Fields injava.io declared asReader
    Modifier and Type
    Field
    Description
    protectedReader
    FilterReader.in
    The underlying character-input stream.
    Methods injava.io that returnReader
    Modifier and Type
    Method
    Description
    staticReader
    Reader.nullReader()
    Returns a newReader that reads no characters.
    staticReader
    Reader.of(CharSequence cs)
    Returns aReader that reads characters from aCharSequence.
    Console.reader()
    Retrieves the uniqueReader object associated with this console.
    Constructors injava.io with parameters of typeReader
    Modifier
    Constructor
    Description
     
    Creates a buffering character-input stream that uses a default-sized input buffer.
     
    BufferedReader(Reader in, int sz)
    Creates a buffering character-input stream that uses an input buffer of the specified size.
    protected
    Creates a new filtered reader.
     
    Create a new line-numbering reader, using the default input-buffer size.
     
    LineNumberReader(Reader in, int sz)
    Create a new line-numbering reader, reading characters into a buffer of the given size.
     
    Creates a new pushback reader with a one-character pushback buffer.
     
    PushbackReader(Reader in, int size)
    Creates a new pushback reader with a pushback buffer of the given size.
     
    Create a tokenizer that parses the given character stream.
  • Uses ofReader injava.nio.channels

    Methods injava.nio.channels that returnReader
    Modifier and Type
    Method
    Description
    staticReader
    Channels.newReader(ReadableByteChannel ch,String csName)
    Constructs a reader that decodes bytes from the given channel according to the named charset.
    staticReader
    Channels.newReader(ReadableByteChannel ch,Charset charset)
    Constructs a reader that decodes bytes from the given channel according to the given charset.
    staticReader
    Channels.newReader(ReadableByteChannel ch,CharsetDecoder dec, int minBufferCap)
    Constructs a reader that decodes bytes from the given channel using the given decoder.
  • Uses ofReader injava.sql

    Methods injava.sql that returnReader
    Modifier and Type
    Method
    Description
    CallableStatement.getCharacterStream(int parameterIndex)
    Retrieves the value of the designated parameter as ajava.io.Reader object in the Java programming language.
    CallableStatement.getCharacterStream(String parameterName)
    Retrieves the value of the designated parameter as ajava.io.Reader object in the Java programming language.
    Retrieves theCLOB value designated by thisClob object as ajava.io.Reader object (or as a stream of characters).
    Clob.getCharacterStream(long pos, long length)
    Returns aReader object that contains a partialClob value, starting with the character specified by pos, which is length characters in length.
    ResultSet.getCharacterStream(int columnIndex)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.io.Reader object.
    ResultSet.getCharacterStream(String columnLabel)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.io.Reader object.
    Retrieves the XML value designated by this SQLXML instance as a java.io.Reader object.
    CallableStatement.getNCharacterStream(int parameterIndex)
    Retrieves the value of the designated parameter as ajava.io.Reader object in the Java programming language.
    CallableStatement.getNCharacterStream(String parameterName)
    Retrieves the value of the designated parameter as ajava.io.Reader object in the Java programming language.
    ResultSet.getNCharacterStream(int columnIndex)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.io.Reader object.
    ResultSet.getNCharacterStream(String columnLabel)
    Retrieves the value of the designated column in the current row of thisResultSet object as ajava.io.Reader object.
    Reads the next attribute in the stream and returns it as a stream of Unicode characters.
    Methods injava.sql with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    CallableStatement.setCharacterStream(String parameterName,Reader reader)
    Sets the designated parameter to the givenReader object.
    void
    CallableStatement.setCharacterStream(String parameterName,Reader reader, int length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    CallableStatement.setCharacterStream(String parameterName,Reader reader, long length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    PreparedStatement.setCharacterStream(int parameterIndex,Reader reader)
    Sets the designated parameter to the givenReader object.
    void
    PreparedStatement.setCharacterStream(int parameterIndex,Reader reader, int length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    PreparedStatement.setCharacterStream(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    CallableStatement.setClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    CallableStatement.setClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    CallableStatement.setNCharacterStream(String parameterName,Reader value)
    Sets the designated parameter to aReader object.
    void
    CallableStatement.setNCharacterStream(String parameterName,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setNCharacterStream(int parameterIndex,Reader value)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setNCharacterStream(int parameterIndex,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    CallableStatement.setNClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    CallableStatement.setNClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setNClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    PreparedStatement.setNClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    ResultSet.updateCharacterStream(int columnIndex,Reader x)
    Updates the designated column with a character stream value.
    void
    ResultSet.updateCharacterStream(int columnIndex,Reader x, int length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateCharacterStream(int columnIndex,Reader x, long length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateCharacterStream(String columnLabel,Reader reader)
    Updates the designated column with a character stream value.
    void
    ResultSet.updateCharacterStream(String columnLabel,Reader reader, int length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateCharacterStream(String columnLabel,Reader reader, long length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateClob(int columnIndex,Reader reader)
    Updates the designated column using the givenReader object.
    void
    ResultSet.updateClob(int columnIndex,Reader reader, long length)
    Updates the designated column using the givenReader object, which is the given number of characters long.
    void
    ResultSet.updateClob(String columnLabel,Reader reader)
    Updates the designated column using the givenReader object.
    void
    ResultSet.updateClob(String columnLabel,Reader reader, long length)
    Updates the designated column using the givenReader object, which is the given number of characters long.
    void
    ResultSet.updateNCharacterStream(int columnIndex,Reader x)
    Updates the designated column with a character stream value.
    void
    ResultSet.updateNCharacterStream(int columnIndex,Reader x, long length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateNCharacterStream(String columnLabel,Reader reader)
    Updates the designated column with a character stream value.
    void
    ResultSet.updateNCharacterStream(String columnLabel,Reader reader, long length)
    Updates the designated column with a character stream value, which will have the specified number of bytes.
    void
    ResultSet.updateNClob(int columnIndex,Reader reader)
    Updates the designated column using the givenReader The data will be read from the stream as needed until end-of-stream is reached.
    void
    ResultSet.updateNClob(int columnIndex,Reader reader, long length)
    Updates the designated column using the givenReader object, which is the given number of characters long.
    void
    ResultSet.updateNClob(String columnLabel,Reader reader)
    Updates the designated column using the givenReader object.
    void
    ResultSet.updateNClob(String columnLabel,Reader reader, long length)
    Updates the designated column using the givenReader object, which is the given number of characters long.
    void
    Writes the next attribute to the stream as a stream of Unicode characters.
  • Uses ofReader injava.util

    Methods injava.util with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    Properties.load(Reader reader)
    Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.
    Constructors injava.util with parameters of typeReader
    Modifier
    Constructor
    Description
     
    Creates a property resource bundle from aReader.
  • Uses ofReader injavax.print

    Methods injavax.print that returnReader
    Modifier and Type
    Method
    Description
    Obtains a reader for extracting character print data from this doc.
    SimpleDoc.getReaderForText()
    Obtains a reader for extracting character print data from this doc.
  • Uses ofReader injavax.script

    Fields injavax.script declared asReader
    Modifier and Type
    Field
    Description
    protectedReader
    SimpleScriptContext.reader
    This is the reader to be used for input from scripts.
    Methods injavax.script that returnReader
    Modifier and Type
    Method
    Description
    ScriptContext.getReader()
    Returns aReader to be used by the script to read input.
    SimpleScriptContext.getReader()
    Returns aReader to be used by the script to read input.
    Methods injavax.script with parameters of typeReader
    Modifier and Type
    Method
    Description
    Compilable.compile(Reader script)
    Compiles the script (source read fromReader) for later execution.
    AbstractScriptEngine.eval(Reader reader)
    eval(Reader) calls the abstracteval(Reader, ScriptContext) passing the value of thecontext field.
    AbstractScriptEngine.eval(Reader reader,Bindings bindings)
    eval(Reader, Bindings) calls the abstracteval(Reader, ScriptContext) method, passing it aScriptContext whose Reader, Writers and Bindings for scopes other thatENGINE_SCOPE are identical to those members of the protectedcontext field.
    ScriptEngine.eval(Reader reader)
    Same aseval(String) except that the source of the script is provided as aReader
    ScriptEngine.eval(Reader reader,Bindings n)
    Same aseval(String, Bindings) except that the source of the script is provided as aReader.
    ScriptEngine.eval(Reader reader,ScriptContext context)
    Same aseval(String, ScriptContext) where the source of the script is read from aReader.
    void
    ScriptContext.setReader(Reader reader)
    Sets theReader for scripts to read input .
    void
    SimpleScriptContext.setReader(Reader reader)
    Sets theReader for scripts to read input .
  • Uses ofReader injavax.sql

    Methods injavax.sql with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    RowSet.setCharacterStream(int parameterIndex,Reader reader)
    Sets the designated parameter in thisRowSet object's command to the givenReader object.
    void
    RowSet.setCharacterStream(int parameterIndex,Reader reader, int length)
    Sets the designated parameter in thisRowSet object's command to the givenjava.io.Reader value.
    void
    RowSet.setCharacterStream(String parameterName,Reader reader)
    Sets the designated parameter to the givenReader object.
    void
    RowSet.setCharacterStream(String parameterName,Reader reader, int length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    RowSet.setClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    RowSet.setClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    RowSet.setClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    RowSet.setClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNCharacterStream(int parameterIndex,Reader value)
    Sets the designated parameter in thisRowSet object's command to aReader object.
    void
    RowSet.setNCharacterStream(int parameterIndex,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNCharacterStream(String parameterName,Reader value)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNCharacterStream(String parameterName,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    RowSet.setNClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
  • Uses ofReader injavax.sql.rowset

    Fields injavax.sql.rowset declared asReader
    Modifier and Type
    Field
    Description
    protectedReader
    BaseRowSet.charStream
    TheReader object that will be returned by the methodgetCharacterStream, which is specified in theResultSet interface.
    Methods injavax.sql.rowset with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    WebRowSet.readXml(Reader reader)
    Reads aWebRowSet object in its XML format from the givenReader object.
    void
    BaseRowSet.setCharacterStream(int parameterIndex,Reader reader)
    Sets the designated parameter in thisRowSet object's command to the givenReader object.
    void
    BaseRowSet.setCharacterStream(int parameterIndex,Reader reader, int length)
    Sets the designated parameter to the givenjava.io.Reader object, which will have the specified number of characters.
    void
    BaseRowSet.setCharacterStream(String parameterName,Reader reader)
    Sets the designated parameter to the givenReader object.
    void
    BaseRowSet.setCharacterStream(String parameterName,Reader reader, int length)
    Sets the designated parameter to the givenReader object, which is the given number of characters long.
    void
    BaseRowSet.setClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNCharacterStream(int parameterIndex,Reader value)
    Sets the designated parameter in thisRowSet object's command to aReader object.
    void
    BaseRowSet.setNCharacterStream(int parameterIndex,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNCharacterStream(String parameterName,Reader value)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNCharacterStream(String parameterName,Reader value, long length)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNClob(int parameterIndex,Reader reader)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNClob(int parameterIndex,Reader reader, long length)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNClob(String parameterName,Reader reader)
    Sets the designated parameter to aReader object.
    void
    BaseRowSet.setNClob(String parameterName,Reader reader, long length)
    Sets the designated parameter to aReader object.
  • Uses ofReader injavax.sql.rowset.serial

    Methods injavax.sql.rowset.serial that returnReader
    Modifier and Type
    Method
    Description
    SerialClob.getCharacterStream()
    Returns thisSerialClob object's data as a stream of Unicode characters.
    SerialClob.getCharacterStream(long pos, long length)
    Returns aReader object that contains a partialSerialClob value, starting with the character specified by pos, which is length characters in length.
    SQLInputImpl.readCharacterStream()
    Retrieves the next attribute in thisSQLInputImpl object as a stream of Unicode characters.
    Methods injavax.sql.rowset.serial with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    SQLOutputImpl.writeCharacterStream(Reader x)
    Writes a stream of Unicode characters to thisSQLOutputImpl object.
  • Uses ofReader injavax.sql.rowset.spi

    Methods injavax.sql.rowset.spi with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    XmlReader.readXML(WebRowSet caller,Reader reader)
    Reads and parses the givenWebRowSet object from the given input stream in XML format.
  • Uses ofReader injavax.swing.text

    Methods injavax.swing.text with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    DefaultEditorKit.read(Reader in,Document doc, int pos)
    Inserts content from the given stream, which will be treated as plain text.
    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
    JTextComponent.read(Reader in,Object desc)
    Initializes from a stream.
  • Uses ofReader injavax.swing.text.html

    Methods injavax.swing.text.html with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    StyleSheet.loadRules(Reader in,URL ref)
    Loads a set of rules that have been specified in terms of CSS1 grammar.
    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
    HTMLEditorKit.read(Reader in,Document doc, int pos)
    Inserts content from the given stream.
  • Uses ofReader injavax.swing.text.html.parser

    Methods injavax.swing.text.html.parser with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    DocumentParser.parse(Reader in,HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet)
    Parse an HTML stream, given a DTD.
    void
    Parser.parse(Reader in)
    Parse an HTML stream, given a DTD.
    void
    ParserDelegator.parse(Reader r,HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet)
     
  • Uses ofReader injavax.swing.text.rtf

    Methods injavax.swing.text.rtf with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    RTFEditorKit.read(Reader in,Document doc, int pos)
    Insert content from the given stream, which will be treated as plain text.
  • Uses ofReader injavax.tools

    Methods injavax.tools that returnReader
    Modifier and Type
    Method
    Description
    FileObject.openReader(boolean ignoreEncodingErrors)
    Returns a reader for this object.
    ForwardingFileObject.openReader(boolean ignoreEncodingErrors)
     
    SimpleJavaFileObject.openReader(boolean ignoreEncodingErrors)
    Returns a reader for this object.
  • Uses ofReader injavax.xml.stream

    Methods injavax.xml.stream with parameters of typeReader
    Modifier and Type
    Method
    Description
    XMLInputFactory.createXMLEventReader(Reader reader)
    Create a new XMLEventReader from a reader.
    XMLInputFactory.createXMLEventReader(String systemId,Reader reader)
    Create a new XMLEventReader from a reader.
    XMLInputFactory.createXMLStreamReader(Reader reader)
    Create a new XMLStreamReader from a reader.
    XMLInputFactory.createXMLStreamReader(String systemId,Reader reader)
    Create a new XMLStreamReader from a java.io.InputStream.
  • Uses ofReader injavax.xml.transform.stream

    Methods injavax.xml.transform.stream that returnReader
    Modifier and Type
    Method
    Description
    StreamSource.getReader()
    Get the character stream that was set with setReader.
    Methods injavax.xml.transform.stream with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    StreamSource.setReader(Reader reader)
    Set the input to be a character reader.
    Constructors injavax.xml.transform.stream with parameters of typeReader
    Modifier
    Constructor
    Description
     
    Construct a StreamSource from a character reader.
     
    StreamSource(Reader reader,String systemId)
    Construct a StreamSource from a character reader.
  • Uses ofReader injdk.jfr

    Methods injdk.jfr with parameters of typeReader
    Modifier and Type
    Method
    Description
    Configuration.create(Reader reader)
    Reads a configuration from a character stream.
  • Uses ofReader injdk.jshell

    Methods injdk.jshell that returnReader
    Modifier and Type
    Method
    Description
    JShellConsole.reader()
    Retrieves the uniqueReader object associated with this console.
  • Uses ofReader inorg.w3c.dom.ls

    Methods inorg.w3c.dom.ls that returnReader
    Modifier and Type
    Method
    Description
    An attribute of a language and binding dependent type that represents a stream of 16-bit units.
    Methods inorg.w3c.dom.ls with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    LSInput.setCharacterStream(Reader characterStream)
    An attribute of a language and binding dependent type that represents a stream of 16-bit units.
  • Uses ofReader inorg.xml.sax

    Methods inorg.xml.sax that returnReader
    Modifier and Type
    Method
    Description
    InputSource.getCharacterStream()
    Get the character stream for this input source.
    Methods inorg.xml.sax with parameters of typeReader
    Modifier and Type
    Method
    Description
    void
    InputSource.setCharacterStream(Reader characterStream)
    Set the character stream for this input source.
    Constructors inorg.xml.sax with parameters of typeReader
    Modifier
    Constructor
    Description
     
    InputSource(Reader characterStream)
    Create a new input source with a character stream.