Uses of Package java.nio.file (Java Platform SE 8 )
Date: 2020-03-26

# Uses of Package
java.nio.file

- Packages that use java.nio.file
  Package | Description
  --- | ---
  java.io | Provides for system input and output through data streams, serialization and the file system.
  java.nio.channels | Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
  java.nio.file | Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
  java.nio.file.spi | Service-provider classes for the ``java.nio.file`` package.
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).

- Classes in java.nio.file used by java.io
  Class and Description
  Path An object that may be used to locate a file in a file system.

- Classes in java.nio.file used by java.nio.channels
  Class and Description
  OpenOption An object that configures how to open or create a file.
  Path An object that may be used to locate a file in a file system.

- Classes in java.nio.file used by java.nio.file
  Class and Description
  AccessMode Defines access modes used to test the accessibility of a file.
  CopyOption An object that configures how to copy or move a file.
  DirectoryStream An object to iterate over the entries in a directory.
  DirectoryStream.Filter An interface that is implemented by objects that decide if a directory entry should be accepted or filtered.
  FileStore Storage for files.
  FileSystem Provides an interface to a file system and is the factory for objects to access files and other objects in the file system.
  FileSystemException Thrown when a file system operation fails on one or two files.
  FileVisitOption Defines the file tree traversal options.
  FileVisitor A visitor of files.
  FileVisitResult The result type of a `FileVisitor`.
  LinkOption Defines the options as to how symbolic links are handled.
  OpenOption An object that configures how to open or create a file.
  Path An object that may be used to locate a file in a file system.
  PathMatcher An interface that is implemented by objects that perform match operations on paths.
  SecureDirectoryStream A `DirectoryStream` that defines operations on files that are located relative to an open directory.
  StandardCopyOption Defines the standard copy options.
  StandardOpenOption Defines the standard open options.
  Watchable An object that may be registered with a watch service so that it can be watched for changes and events.
  WatchEvent An event or a repeated event for an object that is registered with a `WatchService`.
  WatchEvent.Kind An event kind, for the purposes of identification.
  WatchEvent.Modifier An event modifier that qualifies how a `Watchable` is registered with a `WatchService`.
  WatchKey A token representing the registration of a `watchable` object with a `WatchService`.
  WatchService A watch service that watches registered objects for changes and events.

- Classes in java.nio.file used by java.nio.file.spi
  Class and Description
  AccessMode Defines access modes used to test the accessibility of a file.
  CopyOption An object that configures how to copy or move a file.
  DirectoryStream An object to iterate over the entries in a directory.
  DirectoryStream.Filter An interface that is implemented by objects that decide if a directory entry should be accepted or filtered.
  FileStore Storage for files.
  FileSystem Provides an interface to a file system and is the factory for objects to access files and other objects in the file system.
  LinkOption Defines the options as to how symbolic links are handled.
  OpenOption An object that configures how to open or create a file.
  Path An object that may be used to locate a file in a file system.

- Classes in java.nio.file used by java.util
  Class and Description
  Path An object that may be used to locate a file in a file system.

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, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.