## Uses of Class
java.io.InputStream

- Packages that use InputStream
  Package | Description
  --- | ---
  java.io |
  java.lang |
  java.net |
  java.util |
  org.apidesign.vm4brwsr |

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

    Subclasses of InputStream in java.io
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BufferedInputStream` A `BufferedInputStream` adds functionality to another input stream-namely, the ability to buffer the input and to support the `mark` and `reset` methods.
    `class` | `ByteArrayInputStream` A `ByteArrayInputStream` contains an internal buffer that contains bytes that may be read from the stream.
    `class` | `DataInputStream` A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
    `class` | `FileInputStream` A `FileInputStream` obtains input bytes from a file in a file system.
    `class` | `FilterInputStream` A `FilterInputStream` contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    `class` | `LineNumberInputStream` Deprecated. This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.
    `class` | `ObjectInputStream` An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.
    `class` | `PushbackInputStream` A `PushbackInputStream` adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.

    Fields in java.io declared as InputStream
    Modifier and Type | Field and Description
    --- | ---
    `protected InputStream` | FilterInputStream.`in` The input stream to be filtered.

    Constructors in java.io with parameters of type InputStream
    Constructor and Description
    `BufferedInputStream(InputStream in)` Creates a `BufferedInputStream` and saves its argument, the input stream `in`, for later use.
    `BufferedInputStream(InputStream in, int size)` Creates a `BufferedInputStream` with the specified buffer size, and saves its argument, the input stream `in`, for later use.
    `DataInputStream(InputStream in)` Creates a DataInputStream that uses the specified underlying InputStream.
    `FilterInputStream(InputStream in)` Creates a `FilterInputStream` by assigning the argument `in` to the field `this.in` so as to remember it for later use.
    `InputStreamReader(InputStream in)` Creates an InputStreamReader that uses the default charset.
    `InputStreamReader(InputStream in, String charsetName)` Creates an InputStreamReader that uses the named charset.
    `LineNumberInputStream(InputStream in)` Deprecated. Constructs a newline number input stream that reads its input from the specified input stream.
    `ObjectInputStream(InputStream in)` Creates an ObjectInputStream that reads from the specified InputStream.
    `PushbackInputStream(InputStream in)` Creates a `PushbackInputStream` and saves its argument, the input stream `in`, for later use.
    `PushbackInputStream(InputStream in, int size)` Creates a `PushbackInputStream` with a pushback buffer of the specified `size`, and saves its argument, the input stream `in`, for later use.

  - ### Uses of InputStream in java.lang

    Fields in java.lang declared as InputStream
    Modifier and Type | Field and Description
    --- | ---
    `static InputStream` | System.`in`

    Methods in java.lang that return InputStream
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | ClassLoader.`getResourceAsStream(String name)` Returns an input stream for reading the specified resource.
    `InputStream` | Class.`getResourceAsStream(String name)` Finds a resource with a given name.
    `static InputStream` | ClassLoader.`getSystemResourceAsStream(String name)` Open for reading, a resource of the specified name from the search path used to load classes.

    Methods in java.lang with parameters of type InputStream
    Modifier and Type | Method and Description
    --- | ---
    `static void` | System.`setIn(InputStream in)`

  - ### Uses of InputStream in java.net

    Methods in java.net that return InputStream
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | URLConnection.`getInputStream()` Returns an input stream that reads from this open connection.
    `InputStream` | URL.`openStream()` Opens a connection to this `URL` and returns an `InputStream` for reading from that connection.

    Methods in java.net with parameters of type InputStream
    Modifier and Type | Method and Description
    --- | ---
    `static String` | URLConnection.`guessContentTypeFromStream(InputStream is)` Tries to determine the type of an input stream based on the characters at the beginning of the input stream.

  - ### Uses of InputStream in java.util

    Methods in java.util with parameters of type InputStream
    Modifier and Type | Method and Description
    --- | ---
    `void` | Properties.`load(InputStream inStream)` Reads a property list (key and element pairs) from the input byte stream.
    `void` | Properties.`loadFromXML(InputStream in)` Loads all of the properties represented by the XML document on the specified input stream into this properties table.

    Constructors in java.util with parameters of type InputStream
    Constructor and Description
    `PropertyResourceBundle(InputStream stream)` Creates a property resource bundle from an `InputStream`.

  - ### Uses of InputStream in org.apidesign.vm4brwsr

    Methods in org.apidesign.vm4brwsr that return InputStream
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | Bck2Brwsr.Resources.`get(String resource)` Loads given resource (class or other file like image).

Copyright © 2025 API Design. All Rights Reserved.