# Hierarchy For Package java.nio.file

Package Hierarchies:

- All Packages

## Class Hierarchy

- java.lang.Object
  - java.nio.file.Files
  - java.nio.file.FileStore
  - java.nio.file.FileSystem (implements java.io.Closeable)
  - java.nio.file.FileSystems
  - java.nio.file.Paths
  - java.security.Permission (implements java.security.Guard, java.io.Serializable)
    - java.security.BasicPermission (implements java.io.Serializable)
      - java.nio.file.LinkPermission
  - java.nio.file.SimpleFileVisitor<T> (implements java.nio.file.FileVisitor<T>)
  - java.nio.file.StandardWatchEventKinds
  - java.lang.Throwable (implements java.io.Serializable)
    - java.lang.Exception
      - java.io.IOException
        - java.nio.file.FileSystemException
          - java.nio.file.AccessDeniedException
          - java.nio.file.AtomicMoveNotSupportedException
          - java.nio.file.DirectoryNotEmptyException
          - java.nio.file.FileAlreadyExistsException
          - java.nio.file.FileSystemLoopException
          - java.nio.file.NoSuchFileException
          - java.nio.file.NotDirectoryException
          - java.nio.file.NotLinkException
      - java.lang.RuntimeException
        - java.util.ConcurrentModificationException
          - java.nio.file.DirectoryIteratorException
        - java.nio.file.FileSystemAlreadyExistsException
        - java.nio.file.FileSystemNotFoundException
        - java.lang.IllegalArgumentException
          - java.nio.file.InvalidPathException
          - java.nio.file.ProviderMismatchException
        - java.lang.IllegalStateException
          - java.nio.file.ClosedDirectoryStreamException
          - java.nio.file.ClosedFileSystemException
          - java.nio.file.ClosedWatchServiceException
        - java.nio.file.ProviderNotFoundException
        - java.lang.UnsupportedOperationException
          - java.nio.file.ReadOnlyFileSystemException

## Interface Hierarchy

- java.lang.AutoCloseable
  - java.io.Closeable
    - java.nio.file.DirectoryStream<T> (also extends java.lang.Iterable<T>)
      - java.nio.file.SecureDirectoryStream<T>
    - java.nio.file.WatchService
- java.lang.Comparable<T>
  - java.nio.file.Path (also extends java.lang.Iterable<T>, java.nio.file.Watchable)
- java.nio.file.CopyOption
- java.nio.file.DirectoryStream.Filter<T>
- java.nio.file.FileVisitor<T>
- java.lang.Iterable<T>
  - java.nio.file.DirectoryStream<T> (also extends java.io.Closeable)
    - java.nio.file.SecureDirectoryStream<T>
  - java.nio.file.Path (also extends java.lang.Comparable<T>, java.nio.file.Watchable)
- java.nio.file.OpenOption
- java.nio.file.PathMatcher
- java.nio.file.Watchable
  - java.nio.file.Path (also extends java.lang.Comparable<T>, java.lang.Iterable<T>)
- java.nio.file.WatchEvent<T>
- java.nio.file.WatchEvent.Kind<T>
- java.nio.file.WatchEvent.Modifier
- java.nio.file.WatchKey

## Enum Hierarchy

- java.lang.Object
  - java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
    - java.nio.file.StandardOpenOption (implements java.nio.file.OpenOption)
    - java.nio.file.StandardCopyOption (implements java.nio.file.CopyOption)
    - java.nio.file.FileVisitResult
    - java.nio.file.FileVisitOption
    - java.nio.file.AccessMode
    - java.nio.file.LinkOption (implements java.nio.file.CopyOption, java.nio.file.OpenOption)

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved.