次の方法で共有


Java.Nio.FileNio Namespace

Classes

AccessDeniedException

Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check.

AccessMode

Defines access modes used to test the accessibility of a file.

AtomicMoveNotSupportedException

Checked exception thrown when a file cannot be moved as an atomic file system operation.

ClosedDirectoryStreamException

Unchecked exception thrown when an attempt is made to invoke an operation on a directory stream that is closed.

ClosedFileSystemException

Unchecked exception thrown when an attempt is made to invoke an operation on a file and the file system is closed.

ClosedWatchServiceException

Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed.

DirectoryIteratorException

Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory.

DirectoryNotEmptyException

Checked exception thrown when a file system operation fails because a directory is not empty.

FileAlreadyExistsException

Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists.

Files

This class consists exclusively of static methods that operate on files, directories, or other types of files.

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.

FileSystemAlreadyExistsException

Runtime exception thrown when an attempt is made to create a file system that already exists.

FileSystemException

Thrown when a file system operation fails on one or two files.

FileSystemLoopException

Checked exception thrown when a file system loop, or cycle, is encountered.

FileSystemNotFoundException

Runtime exception thrown when a file system cannot be found.

FileSystems

Factory methods for file systems.

FileVisitOption

Defines the file tree traversal options.

FileVisitResult

The result type of a FileVisitor FileVisitor.

InvalidPathException

Unchecked exception thrown when path string cannot be converted into a Path because the path string contains invalid characters, or the path string is invalid for other file system specific reasons.

LinkOption

Defines the options as to how symbolic links are handled.

LinkPermission

The Permission class for link creation operations.

NoSuchFileException

Checked exception thrown when an attempt is made to access a file that does not exist.

NotDirectoryException

Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory.

NotLinkException

Checked exception thrown when a file system operation fails because a file is not a symbolic link.

Path
Paths

This class consists exclusively of static methods that return a Path by converting a path string or URI.

ProviderMismatchException

Unchecked exception thrown when an attempt is made to invoke a method on an object created by one file system provider with a parameter created by a different file system provider.

ProviderNotFoundException

Runtime exception thrown when a provider of the required type cannot be found.

ReadOnlyFileSystemException

Unchecked exception thrown when an attempt is made to update an object associated with a FileSystem#isReadOnly() read-onlyFileSystem.

SimpleFileVisitor

A simple visitor of files with default behavior to visit all files and to re-throw I/O errors.

StandardCopyOption

Defines the standard copy options.

StandardOpenOption

Defines the standard open options.

StandardWatchEventKinds

Defines the <em>standard</em> event kinds.

Interfaces

ICopyOption

An object that configures how to copy or move a file.

IDirectoryStream

An object to iterate over the entries in a directory.

IDirectoryStreamFilter

An interface that is implemented by objects that decide if a directory entry should be accepted or filtered.

IFileVisitor

A visitor of files.

IOpenOption

An object that configures how to open or create a file.

IPath

An object that may be used to locate a file in a file system.

IPathMatcher

An interface that is implemented by objects that perform match operations on paths.

ISecureDirectoryStream

A DirectoryStream that defines operations on files that are located relative to an open directory.

IWatchable

An object that may be registered with a watch service so that it can be <em>watched</em> for changes and events.

IWatchEvent

An event or a repeated event for an object that is registered with a WatchService.

IWatchEventKind

An event kind, for the purposes of identification.

IWatchEventModifier

An event modifier that qualifies how a Watchable is registered with a WatchService.

IWatchKey

A token representing the registration of a Watchable watchable object with a WatchService.

IWatchService

A watch service that <em>watches</em> registered objects for changes and events.