Package java.io

## Interface Closeable

- All Superinterfaces:
    `AutoCloseable`
  All Known Subinterfaces:
    `ExternalResourceService.Writer`
  All Known Implementing Classes:
    `BufferedImage`, `BufferedVectorImage`, `ByteArrayInputStream`, `ByteArrayOutputStream`, `DataInputStream`, `DataOutputStream`, `FilterInputStream`, `FilterOutputStream`, `InputStream`, `InputStreamReader`, `OutputStream`, `OutputStreamWriter`, `PrintStream`, `Reader`, `ResourceBuffer`, `ResourceImage`, `ResourceVectorImage`, `VectorFont`, `Writer`

      public interface Closeable
      extends AutoCloseable

  A `Closeable` is a source or destination of data that can be closed. The close method is invoked to release resources that the object is holding (such as open files).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` | Closes this stream and releases any system resources associated with it.

- - ### Method Detail

    - #### close

          void close()
              throws IOException

      Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `IOException` - if an I/O error occurs