Uses of Class
java.io.Writer
Packages that use Writer
Package
Description
Provides for system input and output through data streams,
serialization and the file system.
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.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
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.
Utilities to assist in the processing of
program elements and
types.
The scripting API consists of interfaces and classes that define
Java Scripting Engines and provides
a framework for their use in Java applications.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
The standard classes and interfaces that a third party vendor has to
use in its implementation of a synchronization provider.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors.Provides a class (
RTFEditorKit) for creating Rich-Text-Format text
editors.Provides interfaces for tools which can be invoked from a program,
for example, compilers.
Defines interfaces and classes for the Streaming API for XML (StAX).
Defines event interfaces for the Streaming API for XML (StAX).
Provides stream and URI specific transformation classes.
Provides interfaces for DOM Level 3 Load and Save.
-
Uses of Writer in java.io
Modifier and TypeClassDescriptionclassWrites text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.classThis class implements a character buffer that can be used as an Writer.classWrites text to character files using a default buffer size.classAbstract class for writing filtered character streams.classAn OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specifiedcharset.classPiped character-output streams.classPrints formatted representations of objects to a text-output stream.classA character stream that collects its output in a string buffer, which can then be used to construct a string.Modifier and TypeFieldDescriptionprotected WriterFilterWriter.outThe underlying character-output stream.protected WriterPrintWriter.outThe underlying character-output stream of thisPrintWriter.Modifier and TypeMethodDescriptionWriter.append(char c) Appends the specified character to this writer.Writer.append(CharSequence csq) Appends the specified character sequence to this writer.Writer.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.static WriterWriter.nullWriter()Returns a newWriterwhich discards all characters.Modifier and TypeMethodDescriptionlongReader.transferTo(Writer out) Reads all characters from this reader and writes the characters to the given writer in the order that they are read.voidWrites the contents of the buffer to another character stream.ModifierConstructorDescriptionBufferedWriter(Writer out) Creates a buffered character-output stream that uses a default-sized output buffer.BufferedWriter(Writer out, int sz) Creates a new buffered character-output stream that uses an output buffer of the given size.protectedFilterWriter(Writer out) Create a new filtered writer.PrintWriter(Writer out) Creates a new PrintWriter, without automatic line flushing.PrintWriter(Writer out, boolean autoFlush) Creates a new PrintWriter. -
Uses of Writer in java.nio.channels
Methods in java.nio.channels that return WriterModifier and TypeMethodDescriptionstatic WriterChannels.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.static WriterChannels.newWriter(WritableByteChannel ch, Charset charset) Constructs a writer that encodes characters according to the given charset and writes the resulting bytes to the given channel.static WriterChannels.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. -
Uses of Writer in java.sql
Modifier and TypeMethodDescriptionClob.setCharacterStream(long pos) Retrieves a stream to be used to write a stream of Unicode characters to theCLOBvalue that thisClobobject represents, at positionpos.SQLXML.setCharacterStream()Retrieves a stream to be used to write the XML value that this SQLXML instance represents. -
Uses of Writer in java.util
Modifier and TypeMethodDescriptionvoidWrites this property list (key and element pairs) in thisPropertiestable to the output character stream in a format suitable for using theload(Reader)method. -
Uses of Writer in javax.lang.model.util
Methods in javax.lang.model.util with parameters of type WriterModifier and TypeMethodDescriptionvoidElements.printElements(Writer w, Element... elements) Prints a representation of the elements to the given writer in the specified order. -
Uses of Writer in javax.script
Fields in javax.script declared as WriterModifier and TypeFieldDescriptionprotected WriterSimpleScriptContext.errorWriterThis is the writer to be used to output errors from scripts.protected WriterSimpleScriptContext.writerThis is the writer to be used to output from scripts.Methods in javax.script that return WriterModifier and TypeMethodDescriptionScriptContext.getErrorWriter()Returns theWriterused to display error output.SimpleScriptContext.getErrorWriter()Returns theWriterused to display error output.ScriptContext.getWriter()Returns theWriterfor scripts to use when displaying output.SimpleScriptContext.getWriter()Returns theWriterfor scripts to use when displaying output.Methods in javax.script with parameters of type WriterModifier and TypeMethodDescriptionvoidScriptContext.setErrorWriter(Writer writer) Sets theWriterused to display error output.voidSimpleScriptContext.setErrorWriter(Writer writer) Sets theWriterused to display error output.voidSets theWriterfor scripts to use when displaying output.voidSets theWriterfor scripts to use when displaying output. -
Uses of Writer in javax.sql.rowset
Methods in javax.sql.rowset with parameters of type WriterModifier and TypeMethodDescriptionvoidWrites the data, properties, and metadata for thisWebRowSetobject to the givenWriterobject in XML format.voidPopulates thisWebRowSetobject with the contents of the givenResultSetobject and writes its data, properties, and metadata to the givenWriterobject in XML format. -
Uses of Writer in javax.sql.rowset.serial
Methods in javax.sql.rowset.serial that return WriterModifier and TypeMethodDescriptionSerialClob.setCharacterStream(long pos) Retrieves a stream to be used to write a stream of Unicode characters to theCLOBvalue that thisSerialClobobject represents, at positionpos. -
Uses of Writer in javax.sql.rowset.spi
Methods in javax.sql.rowset.spi with parameters of type Writer -
Uses of Writer in javax.swing.text
Methods in javax.swing.text that return WriterModifier and TypeMethodDescriptionprotected WriterAbstractWriter.getWriter()Returns the Writer that is used to output the content.Methods in javax.swing.text with parameters of type WriterModifier and TypeMethodDescriptionvoidWrites content from a document to the given stream as plain text.abstract voidWrites content from a document to the given stream in a format appropriate for this kind of content handler.voidStores the contents of the model into the given stream.Constructors in javax.swing.text with parameters of type WriterModifierConstructorDescriptionprotectedAbstractWriter(Writer w, Document doc) Creates a new AbstractWriter.protectedAbstractWriter(Writer w, Document doc, int pos, int len) Creates a new AbstractWriter.protectedAbstractWriter(Writer w, Element root) Creates a new AbstractWriter.protectedAbstractWriter(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 WriterModifier and TypeMethodDescriptionvoidWrite 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 WriterModifierConstructorDescriptionHTMLWriter(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 -
Uses of Writer in javax.tools
Methods in javax.tools that return WriterModifier and TypeMethodDescriptionFileObject.openWriter()Returns a Writer for this file object.ForwardingFileObject.openWriter()SimpleJavaFileObject.openWriter()Wraps the result of openOutputStream in a Writer.Methods in javax.tools with parameters of type WriterModifier and TypeMethodDescriptionDocumentationTool.getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits) Creates a future for a documentation task with the given components and arguments.JavaCompiler.getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits) Creates a future for a compilation task with the given components and arguments. -
Uses of Writer in javax.xml.stream
Methods in javax.xml.stream with parameters of type WriterModifier and TypeMethodDescriptionabstract XMLEventWriterXMLOutputFactory.createXMLEventWriter(Writer stream) Create a new XMLEventWriter that writes to a writerabstract XMLStreamWriterXMLOutputFactory.createXMLStreamWriter(Writer stream) Create a new XMLStreamWriter that writes to a writer -
Uses of Writer in javax.xml.stream.events
Methods in javax.xml.stream.events with parameters of type WriterModifier and TypeMethodDescriptionvoidXMLEvent.writeAsEncodedUnicode(Writer writer) This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. -
Uses of Writer in javax.xml.transform.stream
Methods in javax.xml.transform.stream that return WriterModifier and TypeMethodDescriptionStreamResult.getWriter()Get the character stream that was set with setWriter.Methods in javax.xml.transform.stream with parameters of type WriterModifier and TypeMethodDescriptionvoidSet the writer that is to receive the result.Constructors in javax.xml.transform.stream with parameters of type WriterModifierConstructorDescriptionStreamResult(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 WriterModifier and TypeMethodDescriptionLSOutput.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 WriterModifier and TypeMethodDescriptionvoidLSOutput.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.