## Uses of Interface
java.lang.AutoCloseable

- Packages that use AutoCloseable
  Package | Description
  --- | ---
  java.io |

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

    Subinterfaces of AutoCloseable in java.io
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Closeable` A `Closeable` is a source or destination of data that can be closed.

    Classes in java.io that implement AutoCloseable
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ByteArrayInputStream` A `ByteArrayInputStream` contains an internal buffer that contains bytes that may be read from the stream.
    `class` | `ByteArrayOutputStream` This class implements an output stream in which the data is written into a byte array.
    `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` | `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` | `InputStream` This abstract class is the superclass of all classes representing an input stream of bytes.
    `class` | `InputStreamReader` An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified ``charset``.
    `class` | `OutputStream` This abstract class is the superclass of all classes representing an output stream of bytes.
    `class` | `PushbackInputStream` A `PushbackInputStream` adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.
    `class` | `Reader` Abstract class for reading character streams.

Copyright © 2025 API Design. All Rights Reserved.