## Uses of Class
java.io.OutputStream

- Packages that use OutputStream
  Package | Description
  --- | ---
  java.io |
  java.net |
  java.util |

- - ### Uses of OutputStream in java.io

    Subclasses of OutputStream in java.io
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BufferedOutputStream` The class implements a buffered output stream.
    `class` | `ByteArrayOutputStream` This class implements an output stream in which the data is written into a byte array.
    `class` | `DataOutputStream` A data output stream lets an application write primitive Java data types to an output stream in a portable way.
    `class` | `FileOutputStream` A file output stream is an output stream for writing data to a `File` or to a `FileDescriptor`.
    `class` | `FilterOutputStream` This class is the superclass of all classes that filter output streams.
    `class` | `ObjectOutputStream` An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.
    `class` | `PrintStream` A `PrintStream` adds functionality to another output stream, namely the ability to print representations of various data values conveniently.

    Fields in java.io declared as OutputStream
    Modifier and Type | Field and Description
    --- | ---
    `protected OutputStream` | FilterOutputStream.`out` The underlying output stream to be filtered.

    Methods in java.io with parameters of type OutputStream
    Modifier and Type | Method and Description
    --- | ---
    `void` | ByteArrayOutputStream.`writeTo(OutputStream out)` Writes the complete contents of this byte array output stream to the specified output stream argument, as if by calling the output stream's write method using `out.write(buf, 0, count)`.

    Constructors in java.io with parameters of type OutputStream
    Constructor and Description
    `BufferedOutputStream(OutputStream out)` Creates 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.
    `DataOutputStream(OutputStream out)` Creates a new data output stream to write data to the specified underlying output stream.
    `FilterOutputStream(OutputStream out)` Creates an output stream filter built on top of the specified underlying output stream.
    `ObjectOutputStream(OutputStream out)` Creates an ObjectOutputStream that writes to the specified OutputStream.
    `OutputStreamWriter(OutputStream out)` Creates an OutputStreamWriter that uses the default character encoding.
    `OutputStreamWriter(OutputStream out, Charset cs)` Creates an OutputStreamWriter that uses the given charset.
    `OutputStreamWriter(OutputStream out, String charsetName)` Creates an OutputStreamWriter that uses the named charset.
    `PrintStream(OutputStream out)` Creates a new print stream.
    `PrintStream(OutputStream out, boolean autoFlush)` Creates a new print stream.
    `PrintStream(OutputStream out, boolean autoFlush, String encoding)` Creates a new print stream.
    `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.

  - ### Uses of OutputStream in java.net

    Methods in java.net that return OutputStream
    Modifier and Type | Method and Description
    --- | ---
    `OutputStream` | URLConnection.`getOutputStream()` Returns an output stream that writes to this connection.

  - ### Uses of OutputStream in java.util

    Methods in java.util with parameters of type OutputStream
    Modifier and Type | Method and Description
    --- | ---
    `void` | 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. The preferred way to save a properties list is via the `store(OutputStream out, String comments)` method or the `storeToXML(OutputStream os, String comment)` method.
    `void` | Properties.`store(OutputStream out, String comments)` Writes this property list (key and element pairs) in this `Properties` table to the output stream in a format suitable for loading into a `Properties` table using the `load(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.

Copyright © 2025 API Design. All Rights Reserved.