Uses of Class
java.io.OutputStream
Package
Description
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
Provides classes for color spaces.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides the classes for implementing networking applications.
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.
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Service-provider classes for the
java.nio.file
package.Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
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.
Provides classes for reading and writing the JAR (Java ARchive)
file format, which is based on the standard ZIP file format with an
optional manifest file.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
This package allows applications to store and retrieve user and system
preference and configuration data.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Provides the classes and interfaces for cryptographic
operations.
The main package of the Java Image I/O API.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Provides the principal classes and interfaces for the Java Print
Service API.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI
(Musical Instrument Digital Interface) data.
Supplies interfaces for service providers to implement when offering new MIDI
devices, MIDI file readers and writers, or sound bank readers.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
Supplies abstract classes for service providers to subclass when offering new
audio devices, sound file readers and writers, or audio format converters.
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.
Provides classes and interfaces that deal with editable and noneditable text
components.
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.
Classes for generating and validating XML digital
signatures.
Defines interfaces and classes for the Streaming API for XML (StAX).
Provides stream and URI specific transformation classes.
Provides implementation support for building JShell execution engines.
This package defines APIs for signing jar files.
This package presents a framework that allows application developers to
make use of security services like authentication, data integrity and
data confidentiality from a variety of underlying security mechanisms
like Kerberos, using a unified API.
Provides interfaces for DOM Level 3 Load and Save.
-
Uses of OutputStream in com.sun.net.httpserver
Modifier and TypeMethodDescriptionabstract OutputStream
HttpExchange.getResponseBody()
Returns a stream to which the response body must be written.Modifier and TypeMethodDescriptionabstract void
HttpExchange.setStreams
(InputStream i, OutputStream o) Used by Filters to wrap either (or both) of this exchange'sInputStream
andOutputStream
, with the given filtered streams so that subsequent calls toHttpExchange.getRequestBody()
will return the givenInputStream
, and calls toHttpExchange.getResponseBody()
will return the givenOutputStream
. -
Uses of OutputStream in java.awt.color
Modifier and TypeMethodDescriptionvoid
ICC_Profile.write
(OutputStream s) Write thisICC_Profile
to anOutputStream
. -
Uses of OutputStream in java.beans
ModifierConstructorDescriptionXMLEncoder
(OutputStream out) Creates a new XML encoder to write out JavaBeans to the streamout
using an XML encoding.XMLEncoder
(OutputStream out, String charset, boolean declaration, int indentation) Creates a new XML encoder to write out JavaBeans to the streamout
using the givencharset
starting from the givenindentation
. -
Uses of OutputStream in java.io
Modifier and TypeClassDescriptionclass
The class implements a buffered output stream.class
This class implements an output stream in which the data is written into a byte array.class
A data output stream lets an application write primitive Java data types to an output stream in a portable way.class
A file output stream is an output stream for writing data to aFile
or to aFileDescriptor
.class
This class is the superclass of all classes that filter output streams.class
An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.class
A piped output stream can be connected to a piped input stream to create a communications pipe.class
APrintStream
adds functionality to another output stream, namely the ability to print representations of various data values conveniently.Modifier and TypeFieldDescriptionprotected OutputStream
FilterOutputStream.out
The underlying output stream to be filtered.Modifier and TypeMethodDescriptionstatic OutputStream
OutputStream.nullOutputStream()
Returns a newOutputStream
which discards all bytes.Modifier and TypeMethodDescriptionlong
InputStream.transferTo
(OutputStream out) Reads all bytes from this input stream and writes the bytes to the given output stream in the order that they are read.void
ByteArrayOutputStream.writeTo
(OutputStream out) Writes the complete contents of thisByteArrayOutputStream
to the specified output stream argument, as if by calling the output stream's write method usingout.write(buf, 0, count)
.ModifierConstructorDescriptionCreates a new buffered output stream to write data to the specified underlying output stream.BufferedOutputStream
(OutputStream out, int size) Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.Creates a new data output stream to write data to the specified underlying output stream.Creates an output stream filter built on top of the specified underlying output stream.Creates an ObjectOutputStream that writes to the specified OutputStream.Creates an OutputStreamWriter that uses the default character encoding.OutputStreamWriter
(OutputStream out, String charsetName) Creates an OutputStreamWriter that uses the named charset.OutputStreamWriter
(OutputStream out, Charset cs) Creates an OutputStreamWriter that uses the given charset.OutputStreamWriter
(OutputStream out, CharsetEncoder enc) Creates an OutputStreamWriter that uses the given charset encoder.PrintStream
(OutputStream out) Creates a new print stream, without automatic line flushing, with the specified OutputStream.PrintStream
(OutputStream out, boolean autoFlush) Creates a new print stream, with the specified OutputStream and line flushing.PrintStream
(OutputStream out, boolean autoFlush, String encoding) Creates a new print stream, with the specified OutputStream, line flushing, and character encoding.PrintStream
(OutputStream out, boolean autoFlush, Charset charset) Creates a new print stream, with the specified OutputStream, line flushing and charset.PrintWriter
(OutputStream out) Creates a new PrintWriter, without automatic line flushing, from an existing OutputStream.PrintWriter
(OutputStream out, boolean autoFlush) Creates a new PrintWriter from an existing OutputStream.PrintWriter
(OutputStream out, boolean autoFlush, Charset charset) Creates a new PrintWriter from an existing OutputStream. -
Uses of OutputStream in java.lang
Modifier and TypeMethodDescriptionabstract OutputStream
Process.getOutputStream()
Returns the output stream connected to the normal input of the process. -
Uses of OutputStream in java.net
Modifier and TypeMethodDescriptionabstract OutputStream
CacheRequest.getBody()
Returns an OutputStream to which the response body can be written.Socket.getOutputStream()
Returns an output stream for this socket.protected abstract OutputStream
SocketImpl.getOutputStream()
Returns an output stream for this socket.URLConnection.getOutputStream()
Returns an output stream that writes to this connection. -
Uses of OutputStream in java.nio.channels
Modifier and TypeMethodDescriptionstatic OutputStream
Channels.newOutputStream
(AsynchronousByteChannel ch) Constructs a stream that writes bytes to the given channel.static OutputStream
Channels.newOutputStream
(WritableByteChannel ch) Constructs a stream that writes bytes to the given channel.Modifier and TypeMethodDescriptionstatic WritableByteChannel
Channels.newChannel
(OutputStream out) Constructs a channel that writes bytes to the given stream. -
Uses of OutputStream in java.nio.file
Modifier and TypeMethodDescriptionstatic OutputStream
Files.newOutputStream
(Path path, OpenOption... options) Opens or creates a file, returning an output stream that may be used to write bytes to the file.Modifier and TypeMethodDescriptionstatic long
Files.copy
(Path source, OutputStream out) Copies all bytes from a file to an output stream. -
Uses of OutputStream in java.nio.file.spi
Modifier and TypeMethodDescriptionFileSystemProvider.newOutputStream
(Path path, OpenOption... options) Opens or creates a file, returning an output stream that may be used to write bytes to the file. -
Uses of OutputStream in java.rmi.server
Modifier and TypeMethodDescriptionstatic void
RemoteServer.setLog
(OutputStream out) Log RMI calls to the output streamout
.void
LogStream.setOutputStream
(OutputStream out) Deprecated.no replacement -
Uses of OutputStream in java.security
Modifier and TypeClassDescriptionclass
A transparent stream that updates the associated message digest using the bits going through the stream.Modifier and TypeMethodDescriptionvoid
Certificate.encode
(OutputStream stream) Deprecated, for removal: This API element is subject to removal in a future version.Encodes the certificate to an output stream in a format that can be decoded by thedecode
method.abstract void
KeyStoreSpi.engineStore
(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.final void
KeyStore.store
(OutputStream stream, char[] password) Stores this keystore to the given output stream, and protects its integrity with the given password.ModifierConstructorDescriptionDigestOutputStream
(OutputStream stream, MessageDigest digest) Creates a digest output stream, using the specified output stream and message digest. -
Uses of OutputStream in java.security.cert
Modifier and TypeMethodDescriptionvoid
Extension.encode
(OutputStream out) Generates the extension's DER encoding and writes it to the output stream. -
Uses of OutputStream in java.sql
Modifier and TypeMethodDescriptionClob.setAsciiStream
(long pos) Retrieves a stream to be used to write Ascii characters to theCLOB
value that thisClob
object represents, starting at positionpos
.Blob.setBinaryStream
(long pos) Retrieves a stream that can be used to write to theBLOB
value that thisBlob
object represents.SQLXML.setBinaryStream()
Retrieves a stream that can be used to write the XML value that this SQLXML instance represents. -
Uses of OutputStream in java.util
Modifier and TypeMethodDescriptionBase64.Encoder.wrap
(OutputStream os) Wraps an output stream for encoding byte data using theBase64
encoding scheme.Modifier and TypeMethodDescriptionvoid
Properties.save
(OutputStream out, String comments) Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list.void
Properties.store
(OutputStream out, String comments) Writes this property list (key and element pairs) in thisProperties
table to the output stream in a format suitable for loading into aProperties
table using theload(InputStream)
method.void
Properties.storeToXML
(OutputStream os, String comment) Emits an XML document representing all of the properties contained in this table.void
Properties.storeToXML
(OutputStream os, String comment, String encoding) Emits an XML document representing all of the properties contained in this table, using the specified encoding.void
Properties.storeToXML
(OutputStream os, String comment, Charset charset) Emits an XML document representing all of the properties contained in this table, using the specified encoding.Base64.Encoder.wrap
(OutputStream os) Wraps an output stream for encoding byte data using theBase64
encoding scheme.ModifierConstructorDescriptionConstructs a new formatter with the specified output stream.Formatter
(OutputStream os, String csn) Constructs a new formatter with the specified output stream and charset.Formatter
(OutputStream os, String csn, Locale l) Constructs a new formatter with the specified output stream, charset, and locale.Formatter
(OutputStream os, Charset charset, Locale l) Constructs a new formatter with the specified output stream, charset, and locale. -
Uses of OutputStream in java.util.jar
Modifier and TypeClassDescriptionclass
TheJarOutputStream
class is used to write the contents of a JAR file to any output stream.Modifier and TypeMethodDescriptionvoid
Manifest.write
(OutputStream out) Writes the Manifest to the specified OutputStream.ModifierConstructorDescriptionCreates a newJarOutputStream
with no manifest.JarOutputStream
(OutputStream out, Manifest man) Creates a newJarOutputStream
with the specifiedManifest
. -
Uses of OutputStream in java.util.logging
Modifier and TypeMethodDescriptionprotected void
StreamHandler.setOutputStream
(OutputStream out) Change the output stream.ModifierConstructorDescriptionStreamHandler
(OutputStream out, Formatter formatter) Create aStreamHandler
with a givenFormatter
and output stream. -
Uses of OutputStream in java.util.prefs
Modifier and TypeMethodDescriptionvoid
AbstractPreferences.exportNode
(OutputStream os) Implements theexportNode
method as per the specification inPreferences.exportNode(OutputStream)
.abstract void
Preferences.exportNode
(OutputStream os) Emits on the specified output stream an XML document representing all of the preferences contained in this node (but not its descendants).void
AbstractPreferences.exportSubtree
(OutputStream os) Implements theexportSubtree
method as per the specification inPreferences.exportSubtree(OutputStream)
.abstract void
Preferences.exportSubtree
(OutputStream os) Emits an XML document representing all of the preferences contained in this node and all of its descendants. -
Uses of OutputStream in java.util.zip
Modifier and TypeClassDescriptionclass
An output stream that also maintains a checksum of the data being written.class
This class implements an output stream filter for compressing data in the "deflate" compression format.class
This class implements a stream filter for writing compressed data in the GZIP file format.class
Implements an output stream filter for uncompressing data stored in the "deflate" compression format.class
This class implements an output stream filter for writing files in the ZIP file format.ModifierConstructorDescriptionCheckedOutputStream
(OutputStream out, Checksum cksum) Creates an output stream with the specified Checksum.Creates a new output stream with a default compressor and buffer size.DeflaterOutputStream
(OutputStream out, boolean syncFlush) Creates a new output stream with a default compressor, a default buffer size and the specified flush mode.DeflaterOutputStream
(OutputStream out, Deflater def) Creates a new output stream with the specified compressor and a default buffer size.DeflaterOutputStream
(OutputStream out, Deflater def, boolean syncFlush) Creates a new output stream with the specified compressor, flush mode and a default buffer size.DeflaterOutputStream
(OutputStream out, Deflater def, int size) Creates a new output stream with the specified compressor and buffer size.DeflaterOutputStream
(OutputStream out, Deflater def, int size, boolean syncFlush) Creates a new output stream with the specified compressor, buffer size and flush mode.Creates a new output stream with a default buffer size.GZIPOutputStream
(OutputStream out, boolean syncFlush) Creates a new output stream with a default buffer size and the specified flush mode.GZIPOutputStream
(OutputStream out, int size) Creates a new output stream with the specified buffer size.GZIPOutputStream
(OutputStream out, int size, boolean syncFlush) Creates a new output stream with the specified buffer size and flush mode.Creates a new output stream with a default decompressor and buffer size.InflaterOutputStream
(OutputStream out, Inflater infl) Creates a new output stream with the specified decompressor and a default buffer size.InflaterOutputStream
(OutputStream out, Inflater infl, int bufLen) Creates a new output stream with the specified decompressor and buffer size.Creates a new ZIP output stream.ZipOutputStream
(OutputStream out, Charset charset) Creates a new ZIP output stream. -
Uses of OutputStream in javax.crypto
Modifier and TypeClassDescriptionclass
A CipherOutputStream is composed of an OutputStream and a Cipher so that write() methods first process the data before writing them out to the underlying OutputStream.ModifierConstructorDescriptionprotected
Constructs a CipherOutputStream from an OutputStream without specifying a Cipher.CipherOutputStream
(OutputStream os, Cipher c) Constructs a CipherOutputStream from an OutputStream and a Cipher. -
Uses of OutputStream in javax.imageio
Modifier and TypeMethodDescriptionstatic boolean
ImageIO.write
(RenderedImage im, String formatName, OutputStream output) Writes an image using an arbitraryImageWriter
that supports the given format to anOutputStream
. -
Uses of OutputStream in javax.imageio.stream
ModifierConstructorDescriptionFileCacheImageOutputStream
(OutputStream stream, File cacheDir) Constructs aFileCacheImageOutputStream
that will write to a givenoutputStream
.Constructs aMemoryCacheImageOutputStream
that will write to a givenOutputStream
. -
Uses of OutputStream in javax.print
Modifier and TypeMethodDescriptionabstract StreamPrintService
StreamPrintServiceFactory.getPrintService
(OutputStream out) Returns aStreamPrintService
that can print to the specified output stream.ModifierConstructorDescriptionprotected
Constructs aStreamPrintService
object. -
Uses of OutputStream in javax.sound.midi
Modifier and TypeMethodDescriptionstatic int
MidiSystem.write
(Sequence in, int fileType, OutputStream out) Writes a stream of bytes representing a file of the MIDI file type indicated to the output stream provided. -
Uses of OutputStream in javax.sound.midi.spi
Modifier and TypeMethodDescriptionabstract int
MidiFileWriter.write
(Sequence in, int fileType, OutputStream out) Writes a stream of bytes representing a MIDI file of the file type indicated to the output stream provided. -
Uses of OutputStream in javax.sound.sampled
Modifier and TypeMethodDescriptionstatic int
AudioSystem.write
(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out) Writes a stream of bytes representing an audio file of the specified file type to the output stream provided. -
Uses of OutputStream in javax.sound.sampled.spi
Modifier and TypeMethodDescriptionabstract int
AudioFileWriter.write
(AudioInputStream stream, AudioFileFormat.Type fileType, OutputStream out) Writes a stream of bytes representing an audio file of the file type indicated to the output stream provided. -
Uses of OutputStream in javax.sql.rowset
Modifier and TypeMethodDescriptionvoid
WebRowSet.writeXml
(OutputStream oStream) Writes the data, properties, and metadata for thisWebRowSet
object to the givenOutputStream
object in XML format.void
WebRowSet.writeXml
(ResultSet rs, OutputStream oStream) Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenOutputStream
object in XML format. -
Uses of OutputStream in javax.sql.rowset.serial
Modifier and TypeMethodDescriptionSerialClob.setAsciiStream
(long pos) Retrieves a stream to be used to write Ascii characters to theCLOB
value that thisSerialClob
object represents, starting at positionpos
.SerialBlob.setBinaryStream
(long pos) Retrieves a stream that can be used to write to theBLOB
value that thisBlob
object represents. -
Uses of OutputStream in javax.swing.text
Modifier and TypeMethodDescriptionvoid
DefaultEditorKit.write
(OutputStream 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.abstract void
EditorKit.write
(OutputStream 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. -
Uses of OutputStream in javax.swing.text.rtf
Modifier and TypeMethodDescriptionvoid
RTFEditorKit.write
(OutputStream 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. -
Uses of OutputStream in javax.tools
Modifier and TypeMethodDescriptionFileObject.openOutputStream()
Returns an OutputStream for this file object.ForwardingFileObject.openOutputStream()
SimpleJavaFileObject.openOutputStream()
This implementation always throws UnsupportedOperationException.Modifier and TypeMethodDescriptionint
Tool.run
(InputStream in, OutputStream out, OutputStream err, String... arguments) Run the tool with the given I/O channels and arguments. -
Uses of OutputStream in javax.xml.crypto.dsig
Modifier and TypeMethodDescriptionTransform.transform
(Data data, XMLCryptoContext context, OutputStream os) Transforms the specified data using the underlying transform algorithm. -
Uses of OutputStream in javax.xml.stream
Modifier and TypeMethodDescriptionabstract XMLEventWriter
XMLOutputFactory.createXMLEventWriter
(OutputStream stream) Create a new XMLEventWriter that writes to a streamabstract XMLEventWriter
XMLOutputFactory.createXMLEventWriter
(OutputStream stream, String encoding) Create a new XMLEventWriter that writes to a streamabstract XMLStreamWriter
XMLOutputFactory.createXMLStreamWriter
(OutputStream stream) Create a new XMLStreamWriter that writes to a streamabstract XMLStreamWriter
XMLOutputFactory.createXMLStreamWriter
(OutputStream stream, String encoding) Create a new XMLStreamWriter that writes to a stream -
Uses of OutputStream in javax.xml.transform.stream
Modifier and TypeMethodDescriptionStreamResult.getOutputStream()
Get the byte stream that was set with setOutputStream.Modifier and TypeMethodDescriptionvoid
StreamResult.setOutputStream
(OutputStream outputStream) Set the ByteStream that is to be written to.ModifierConstructorDescriptionStreamResult
(OutputStream outputStream) Construct a StreamResult from a byte stream. -
Uses of OutputStream in jdk.jshell.execution
Modifier and TypeMethodDescriptionstatic void
Util.forwardExecutionControlAndIO
(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String, Consumer<OutputStream>> outputStreamMap, Map<String, Consumer<InputStream>> inputStreamMap) Forward commands from the input to the specifiedExecutionControl
instance, then responses back on the output.static ExecutionControl
Util.remoteInputOutput
(InputStream input, OutputStream output, Map<String, OutputStream> outputStreamMap, Map<String, InputStream> inputStreamMap, BiFunction<ObjectInput, ObjectOutput, ExecutionControl> factory) Creates an ExecutionControl for given packetized input and output.Modifier and TypeMethodDescriptionstatic void
Util.forwardExecutionControlAndIO
(ExecutionControl ec, InputStream inStream, OutputStream outStream, Map<String, Consumer<OutputStream>> outputStreamMap, Map<String, Consumer<InputStream>> inputStreamMap) Forward commands from the input to the specifiedExecutionControl
instance, then responses back on the output.static ExecutionControl
Util.remoteInputOutput
(InputStream input, OutputStream output, Map<String, OutputStream> outputStreamMap, Map<String, InputStream> inputStreamMap, BiFunction<ObjectInput, ObjectOutput, ExecutionControl> factory) Creates an ExecutionControl for given packetized input and output. -
Uses of OutputStream in jdk.security.jarsigner
Modifier and TypeMethodDescriptionvoid
JarSigner.sign
(ZipFile file, OutputStream os) Signs a file into anOutputStream
. -
Uses of OutputStream in org.ietf.jgss
Modifier and TypeMethodDescriptionvoid
GSSContext.acceptSecContext
(InputStream inStream, OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.getMIC
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.int
GSSContext.initSecContext
(InputStream inStream, OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.unwrap
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.wrap
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353. -
Uses of OutputStream in org.w3c.dom.ls
Modifier and TypeMethodDescriptionLSOutput.getByteStream()
An attribute of a language and binding dependent type that represents a writable stream of bytes.Modifier and TypeMethodDescriptionvoid
LSOutput.setByteStream
(OutputStream byteStream) An attribute of a language and binding dependent type that represents a writable stream of bytes.