Uses of Class
java.io.Reader
| 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 define
Java™ Scripting Engines and provides
a 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 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.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.nashorn.api.scripting |
This package provides the
javax.script integration, which is the preferred way to use Nashorn. |
| jdk.nashorn.api.tree |
Nashorn parser API provides interfaces to represent ECMAScript source code
as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.
|
| 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 of Reader in java.awt.datatransfer
Methods in java.awt.datatransfer that return Reader Modifier and Type Method Description ReaderDataFlavor. getReaderForText(Transferable transferable)Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding). -
Uses of Reader in java.io
Subclasses of Reader in java.io Modifier and Type Class Description classBufferedReaderReads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.classCharArrayReaderThis class implements a character buffer that can be used as a character-input stream.classFileReaderReads text from character files using a default buffer size.classFilterReaderAbstract class for reading filtered character streams.classInputStreamReaderAn InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specifiedcharset.classLineNumberReaderA buffered character-input stream that keeps track of line numbers.classPipedReaderPiped character-input streams.classPushbackReaderA character-stream reader that allows characters to be pushed back into the stream.classStringReaderA character stream whose source is a string.Fields in java.io declared as Reader Modifier and Type Field Description protected ReaderFilterReader. inThe underlying character-input stream.Methods in java.io that return Reader Modifier and Type Method Description static ReaderReader. nullReader()Returns a newReaderthat reads no characters.ReaderConsole. reader()Retrieves the uniqueReaderobject associated with this console.Constructors in java.io with parameters of type Reader Constructor Description BufferedReader(Reader in)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.FilterReader(Reader in)Creates a new filtered reader.LineNumberReader(Reader in)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.PushbackReader(Reader in)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.StreamTokenizer(Reader r)Create a tokenizer that parses the given character stream. -
Uses of Reader in java.nio.channels
Methods in java.nio.channels that return Reader Modifier and Type Method Description static ReaderChannels. newReader(ReadableByteChannel ch, String csName)Constructs a reader that decodes bytes from the given channel according to the named charset.static ReaderChannels. newReader(ReadableByteChannel ch, Charset charset)Constructs a reader that decodes bytes from the given channel according to the given charset.static ReaderChannels. newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap)Constructs a reader that decodes bytes from the given channel using the given decoder. -
Uses of Reader in java.sql
Methods in java.sql that return Reader Modifier and Type Method Description ReaderCallableStatement. getCharacterStream(int parameterIndex)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderCallableStatement. getCharacterStream(String parameterName)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderClob. getCharacterStream()Retrieves theCLOBvalue designated by thisClobobject as ajava.io.Readerobject (or as a stream of characters).ReaderClob. getCharacterStream(long pos, long length)Returns aReaderobject that contains a partialClobvalue, starting with the character specified by pos, which is length characters in length.ReaderResultSet. getCharacterStream(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReaderResultSet. getCharacterStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReaderSQLXML. getCharacterStream()Retrieves the XML value designated by this SQLXML instance as a java.io.Reader object.ReaderCallableStatement. getNCharacterStream(int parameterIndex)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderCallableStatement. getNCharacterStream(String parameterName)Retrieves the value of the designated parameter as ajava.io.Readerobject in the Java programming language.ReaderResultSet. getNCharacterStream(int columnIndex)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReaderResultSet. getNCharacterStream(String columnLabel)Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReaderSQLInput. readCharacterStream()Reads the next attribute in the stream and returns it as a stream of Unicode characters.Methods in java.sql with parameters of type Reader Modifier and Type Method Description voidCallableStatement. setCharacterStream(String parameterName, Reader reader)Sets the designated parameter to the givenReaderobject.voidCallableStatement. setCharacterStream(String parameterName, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidCallableStatement. setCharacterStream(String parameterName, Reader reader, long length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidPreparedStatement. setCharacterStream(int parameterIndex, Reader reader)Sets the designated parameter to the givenReaderobject.voidPreparedStatement. setCharacterStream(int parameterIndex, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidPreparedStatement. setCharacterStream(int parameterIndex, Reader reader, long length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidCallableStatement. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidCallableStatement. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidPreparedStatement. setClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidPreparedStatement. setClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidCallableStatement. setNCharacterStream(String parameterName, Reader value)Sets the designated parameter to aReaderobject.voidCallableStatement. setNCharacterStream(String parameterName, Reader value, long length)Sets the designated parameter to aReaderobject.voidPreparedStatement. setNCharacterStream(int parameterIndex, Reader value)Sets the designated parameter to aReaderobject.voidPreparedStatement. setNCharacterStream(int parameterIndex, Reader value, long length)Sets the designated parameter to aReaderobject.voidCallableStatement. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidCallableStatement. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidPreparedStatement. setNClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidPreparedStatement. setNClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidResultSet. updateCharacterStream(int columnIndex, Reader x)Updates the designated column with a character stream value.voidResultSet. updateCharacterStream(int columnIndex, Reader x, int length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateCharacterStream(int columnIndex, Reader x, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateCharacterStream(String columnLabel, Reader reader)Updates the designated column with a character stream value.voidResultSet. updateCharacterStream(String columnLabel, Reader reader, int length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateCharacterStream(String columnLabel, Reader reader, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateClob(int columnIndex, Reader reader)Updates the designated column using the givenReaderobject.voidResultSet. updateClob(int columnIndex, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidResultSet. updateClob(String columnLabel, Reader reader)Updates the designated column using the givenReaderobject.voidResultSet. updateClob(String columnLabel, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidResultSet. updateNCharacterStream(int columnIndex, Reader x)Updates the designated column with a character stream value.voidResultSet. updateNCharacterStream(int columnIndex, Reader x, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateNCharacterStream(String columnLabel, Reader reader)Updates the designated column with a character stream value.voidResultSet. updateNCharacterStream(String columnLabel, Reader reader, long length)Updates the designated column with a character stream value, which will have the specified number of bytes.voidResultSet. updateNClob(int columnIndex, Reader reader)Updates the designated column using the givenReaderThe data will be read from the stream as needed until end-of-stream is reached.voidResultSet. updateNClob(int columnIndex, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidResultSet. updateNClob(String columnLabel, Reader reader)Updates the designated column using the givenReaderobject.voidResultSet. updateNClob(String columnLabel, Reader reader, long length)Updates the designated column using the givenReaderobject, which is the given number of characters long.voidSQLOutput. writeCharacterStream(Reader x)Writes the next attribute to the stream as a stream of Unicode characters. -
Uses of Reader in java.util
Methods in java.util with parameters of type Reader Modifier and Type Method Description voidProperties. load(Reader reader)Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.Constructors in java.util with parameters of type Reader Constructor Description PropertyResourceBundle(Reader reader)Creates a property resource bundle from aReader. -
Uses of Reader in javax.print
Methods in javax.print that return Reader Modifier and Type Method Description ReaderDoc. getReaderForText()Obtains a reader for extracting character print data from this doc.ReaderSimpleDoc. getReaderForText()Obtains a reader for extracting character print data from this doc. -
Uses of Reader in javax.script
Fields in javax.script declared as Reader Modifier and Type Field Description protected ReaderSimpleScriptContext. readerThis is the reader to be used for input from scripts.Methods in javax.script that return Reader Modifier and Type Method Description ReaderScriptContext. getReader()Returns aReaderto be used by the script to read input.Methods in javax.script with parameters of type Reader Modifier and Type Method Description CompiledScriptCompilable. compile(Reader script)Compiles the script (source read fromReader) for later execution.ObjectAbstractScriptEngine. eval(Reader reader)eval(Reader)calls the abstracteval(Reader, ScriptContext)passing the value of thecontextfield.ObjectAbstractScriptEngine. eval(Reader reader, Bindings bindings)eval(Reader, Bindings)calls the abstracteval(Reader, ScriptContext)method, passing it aScriptContextwhose Reader, Writers and Bindings for scopes other thatENGINE_SCOPEare identical to those members of the protectedcontextfield.ObjectScriptEngine. eval(Reader reader)Same aseval(String)except that the source of the script is provided as aReaderObjectScriptEngine. eval(Reader reader, Bindings n)Same aseval(String, Bindings)except that the source of the script is provided as aReader.ObjectScriptEngine. eval(Reader reader, ScriptContext context)Same aseval(String, ScriptContext)where the source of the script is read from aReader.voidScriptContext. setReader(Reader reader)Sets theReaderfor scripts to read input . -
Uses of Reader in javax.sql
Methods in javax.sql with parameters of type Reader Modifier and Type Method Description voidRowSet. setCharacterStream(int parameterIndex, Reader reader)Sets the designated parameter in thisRowSetobject's command to the givenReaderobject.voidRowSet. setCharacterStream(int parameterIndex, Reader reader, int length)Sets the designated parameter in thisRowSetobject's command to the givenjava.io.Readervalue.voidRowSet. setCharacterStream(String parameterName, Reader reader)Sets the designated parameter to the givenReaderobject.voidRowSet. setCharacterStream(String parameterName, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidRowSet. setClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidRowSet. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNCharacterStream(int parameterIndex, Reader value)Sets the designated parameter in thisRowSetobject's command to aReaderobject.voidRowSet. setNCharacterStream(int parameterIndex, Reader value, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNCharacterStream(String parameterName, Reader value)Sets the designated parameter to aReaderobject.voidRowSet. setNCharacterStream(String parameterName, Reader value, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidRowSet. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject. -
Uses of Reader in javax.sql.rowset
Fields in javax.sql.rowset declared as Reader Modifier and Type Field Description protected ReaderBaseRowSet. charStreamTheReaderobject that will be returned by the methodgetCharacterStream, which is specified in theResultSetinterface.Methods in javax.sql.rowset with parameters of type Reader Modifier and Type Method Description voidWebRowSet. readXml(Reader reader)Reads aWebRowSetobject in its XML format from the givenReaderobject.voidBaseRowSet. setCharacterStream(int parameterIndex, Reader reader)Sets the designated parameter in thisRowSetobject's command to the givenReaderobject.voidBaseRowSet. setCharacterStream(int parameterIndex, Reader reader, int length)Sets the designated parameter to the givenjava.io.Readerobject, which will have the specified number of characters.voidBaseRowSet. setCharacterStream(String parameterName, Reader reader)Sets the designated parameter to the givenReaderobject.voidBaseRowSet. setCharacterStream(String parameterName, Reader reader, int length)Sets the designated parameter to the givenReaderobject, which is the given number of characters long.voidBaseRowSet. setClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNCharacterStream(int parameterIndex, Reader value)Sets the designated parameter in thisRowSetobject's command to aReaderobject.voidBaseRowSet. setNCharacterStream(int parameterIndex, Reader value, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNCharacterStream(String parameterName, Reader value)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNCharacterStream(String parameterName, Reader value, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(int parameterIndex, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(int parameterIndex, Reader reader, long length)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(String parameterName, Reader reader)Sets the designated parameter to aReaderobject.voidBaseRowSet. setNClob(String parameterName, Reader reader, long length)Sets the designated parameter to aReaderobject. -
Uses of Reader in javax.sql.rowset.serial
Methods in javax.sql.rowset.serial that return Reader Modifier and Type Method Description ReaderSerialClob. getCharacterStream()Returns thisSerialClobobject's data as a stream of Unicode characters.ReaderSerialClob. getCharacterStream(long pos, long length)Returns aReaderobject that contains a partialSerialClobvalue, starting with the character specified by pos, which is length characters in length.ReaderSQLInputImpl. readCharacterStream()Retrieves the next attribute in thisSQLInputImplobject as a stream of Unicode characters.Methods in javax.sql.rowset.serial with parameters of type Reader Modifier and Type Method Description voidSQLOutputImpl. writeCharacterStream(Reader x)Writes a stream of Unicode characters to thisSQLOutputImplobject. -
Uses of Reader in javax.sql.rowset.spi
Methods in javax.sql.rowset.spi with parameters of type Reader Modifier and Type Method Description voidXmlReader. readXML(WebRowSet caller, Reader reader)Reads and parses the givenWebRowSetobject from the given input stream in XML format. -
Uses of Reader in javax.swing.text
Methods in javax.swing.text with parameters of type Reader Modifier and Type Method Description voidDefaultEditorKit. read(Reader in, Document doc, int pos)Inserts content from the given stream, which will be treated as plain text.abstract voidEditorKit. 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.voidJTextComponent. read(Reader in, Object desc)Initializes from a stream. -
Uses of Reader in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type Reader Modifier and Type Method Description voidStyleSheet. loadRules(Reader in, URL ref)Loads a set of rules that have been specified in terms of CSS1 grammar.abstract voidHTMLEditorKit.Parser. parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet)Parse the given stream and drive the given callback with the results of the parse.voidHTMLEditorKit. read(Reader in, Document doc, int pos)Inserts content from the given stream. -
Uses of Reader in javax.swing.text.html.parser
Methods in javax.swing.text.html.parser with parameters of type Reader Modifier and Type Method Description voidDocumentParser. parse(Reader in, HTMLEditorKit.ParserCallback callback, boolean ignoreCharSet)Parse an HTML stream, given a DTD.voidParser. parse(Reader in)Parse an HTML stream, given a DTD. -
Uses of Reader in javax.swing.text.rtf
Methods in javax.swing.text.rtf with parameters of type Reader Modifier and Type Method Description voidRTFEditorKit. read(Reader in, Document doc, int pos)Insert content from the given stream, which will be treated as plain text. -
Uses of Reader in javax.tools
Methods in javax.tools that return Reader Modifier and Type Method Description ReaderFileObject. openReader(boolean ignoreEncodingErrors)Returns a reader for this object.ReaderForwardingFileObject. openReader(boolean ignoreEncodingErrors)ReaderSimpleJavaFileObject. openReader(boolean ignoreEncodingErrors)Wraps the result of SimpleJavaFileObject.getCharContent(boolean) in a Reader. -
Uses of Reader in javax.xml.stream
Methods in javax.xml.stream with parameters of type Reader Modifier and Type Method Description abstract XMLEventReaderXMLInputFactory. createXMLEventReader(Reader reader)Create a new XMLEventReader from a readerabstract XMLEventReaderXMLInputFactory. createXMLEventReader(String systemId, Reader reader)Create a new XMLEventReader from a readerabstract XMLStreamReaderXMLInputFactory. createXMLStreamReader(Reader reader)Create a new XMLStreamReader from a readerabstract XMLStreamReaderXMLInputFactory. createXMLStreamReader(String systemId, Reader reader)Create a new XMLStreamReader from a java.io.InputStream -
Uses of Reader in javax.xml.transform.stream
Methods in javax.xml.transform.stream that return Reader Modifier and Type Method Description ReaderStreamSource. getReader()Get the character stream that was set with setReader.Methods in javax.xml.transform.stream with parameters of type Reader Modifier and Type Method Description voidStreamSource. setReader(Reader reader)Set the input to be a character reader.Constructors in javax.xml.transform.stream with parameters of type Reader Constructor Description StreamSource(Reader reader)Construct a StreamSource from a character reader.StreamSource(Reader reader, String systemId)Construct a StreamSource from a character reader. -
Uses of Reader in jdk.jfr
Methods in jdk.jfr with parameters of type Reader Modifier and Type Method Description static ConfigurationConfiguration. create(Reader reader)Reads a configuration from a character stream. -
Uses of Reader in jdk.nashorn.api.scripting
Subclasses of Reader in jdk.nashorn.api.scripting Modifier and Type Class Description classURLReaderDeprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release. -
Uses of Reader in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree with parameters of type Reader Modifier and Type Method Description CompilationUnitTreeParser. parse(String name, Reader reader, DiagnosticListener listener)Deprecated, for removal: This API element is subject to removal in a future version.Parses the reader and returns compilation unit tree -
Uses of Reader in org.w3c.dom.ls
Methods in org.w3c.dom.ls that return Reader Modifier and Type Method Description ReaderLSInput. getCharacterStream()An attribute of a language and binding dependent type that represents a stream of 16-bit units.Methods in org.w3c.dom.ls with parameters of type Reader Modifier and Type Method Description voidLSInput. setCharacterStream(Reader characterStream)An attribute of a language and binding dependent type that represents a stream of 16-bit units. -
Uses of Reader in org.xml.sax
Methods in org.xml.sax that return Reader Modifier and Type Method Description ReaderInputSource. getCharacterStream()Get the character stream for this input source.Methods in org.xml.sax with parameters of type Reader Modifier and Type Method Description voidInputSource. setCharacterStream(Reader characterStream)Set the character stream for this input source.Constructors in org.xml.sax with parameters of type Reader Constructor Description InputSource(Reader characterStream)Create a new input source with a character stream.