# Interface AutoCloseable

All Known Subinterfaces:
  `BaseStream<T,S>, DataInput, DataOutput, Stream<T>, VirtualInputDevice`

All Known Implementing Classes:
  `BufferedInputStream, BufferedOutputStream, ByteArrayInputStream, ByteArrayOutputStream, CharArrayReader, DataInputStream, DataOutputStream, DeflaterOutputStream, FilterInputStream, FilterOutputStream, GZIPInputStream, GZIPOutputStream, InflaterInputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, StringReader, StringReader, StringWriter, TarInputStream, TarOutputStream, WAVWriter, Writer`

public interface AutoCloseable

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`

- ## Method Details

  - ### close

    void close() throws Exception
    Throws:
      `Exception`