# Hierarchy For Package java.io

Package Hierarchies:

- All Packages

## Class Hierarchy

- java.lang.Object
  - java.io.File (implements java.lang.Comparable<T>, java.io.Serializable)
  - java.io.FileDescriptor
  - java.io.InputStream (implements java.io.Closeable)
    - java.io.ByteArrayInputStream
    - java.io.FileInputStream
    - java.io.FilterInputStream
      - java.io.BufferedInputStream
      - java.io.DataInputStream (implements java.io.DataInput)
      - java.io.LineNumberInputStream
      - java.io.PushbackInputStream
    - java.io.ObjectInputStream (implements java.io.ObjectInput, java.io.ObjectStreamConstants)
  - java.io.ObjectInputStream.GetField
  - java.io.ObjectOutputStream.PutField
  - java.io.ObjectStreamClass (implements java.io.Serializable)
  - java.io.ObjectStreamField (implements java.lang.Comparable<T>)
  - java.io.OutputStream (implements java.io.Closeable, java.io.Flushable)
    - java.io.ByteArrayOutputStream
    - java.io.FileOutputStream
    - java.io.FilterOutputStream
      - java.io.BufferedOutputStream
      - java.io.DataOutputStream (implements java.io.DataOutput)
      - java.io.PrintStream (implements java.lang.Appendable, java.io.Closeable)
    - java.io.ObjectOutputStream (implements java.io.ObjectOutput, java.io.ObjectStreamConstants)
  - java.io.Reader (implements java.io.Closeable, java.lang.Readable)
    - java.io.BufferedReader
      - java.io.LineNumberReader
    - java.io.FilterReader
    - java.io.InputStreamReader
      - java.io.FileReader
    - java.io.StringReader
  - java.lang.Throwable (implements java.io.Serializable)
    - java.lang.Exception
      - java.io.IOException
        - java.io.EOFException
        - java.io.FileNotFoundException
        - java.io.InterruptedIOException
        - java.io.ObjectStreamException
          - java.io.InvalidClassException
          - java.io.InvalidObjectException
          - java.io.NotActiveException
          - java.io.NotSerializableException
          - java.io.OptionalDataException
          - java.io.StreamCorruptedException
          - java.io.WriteAbortedException
        - java.io.SyncFailedException
        - java.io.UnsupportedEncodingException
        - java.io.UTFDataFormatException
  - java.io.Writer (implements java.lang.Appendable, java.io.Closeable, java.io.Flushable)
    - java.io.BufferedWriter
    - java.io.FilterWriter
    - java.io.OutputStreamWriter
      - java.io.FileWriter
    - java.io.PrintWriter
    - java.io.StringWriter

## Interface Hierarchy

- java.lang.AutoCloseable
  - java.io.Closeable
  - java.io.ObjectInput (also extends java.io.DataInput)
  - java.io.ObjectOutput (also extends java.io.DataOutput)
- java.io.DataInput
  - java.io.ObjectInput (also extends java.lang.AutoCloseable)
- java.io.DataOutput
  - java.io.ObjectOutput (also extends java.lang.AutoCloseable)
- java.io.FileFilter
- java.io.FilenameFilter
- java.io.Flushable
- java.io.ObjectInputValidation
- java.io.ObjectStreamConstants
- java.io.Serializable
  - java.io.Externalizable

Copyright © 2025 API Design. All Rights Reserved.