java.nio.file.spi
2 classes of the module java.base.
Load them with:
using {
"java.nio.file.spi"
}
FileSystemProvider#
abstract · extends Object · java.nio.file.spi.FileSystemProvider
Methods
| Method | Ring call | Java overloads |
|---|---|---|
checkAccess | checkAccess(path,modes) | void checkAccess(Path path, AccessMode[] modes) |
copy | copy(source,target,options) | void copy(Path source, Path target, CopyOption[] options) |
createDirectory | createDirectory(dir,attrs) | void createDirectory(Path dir, FileAttribute[] attrs) |
createLink | createLink(link,existing) | void createLink(Path link, Path existing) |
createSymbolicLink | createSymbolicLink(link,target,attrs) | void createSymbolicLink(Path link, Path target, FileAttribute[] attrs) |
delete | delete(path) | void delete(Path path) |
deleteIfExists | deleteIfExists(path) | boolean deleteIfExists(Path path) |
exists | exists(path,options) | boolean exists(Path path, LinkOption[] options) |
getFileAttributeView | getFileAttributeView(path,type,options) | FileAttributeView getFileAttributeView(Path path, Class type, LinkOption[] options) |
getFileStore | getFileStore(path) | FileStore getFileStore(Path path) |
getFileSystem | getFileSystem(uri) | FileSystem getFileSystem(URI uri) |
getPath | getPath(uri) | Path getPath(URI uri) |
getScheme | getScheme() | String getScheme() |
installedProviders | installedProviders() | static List installedProviders() |
isHidden | isHidden(path) | boolean isHidden(Path path) |
isSameFile | isSameFile(path,path2) | boolean isSameFile(Path path, Path path2) |
move | move(source,target,options) | void move(Path source, Path target, CopyOption[] options) |
newAsynchronousFileChannel | newAsynchronousFileChannel(path,options,executor,attrs) | AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set options, ExecutorService executor, FileAttribute[] attrs) |
newByteChannel | newByteChannel(path,options,attrs) | SeekableByteChannel newByteChannel(Path path, Set options, FileAttribute[] attrs) |
newDirectoryStream | newDirectoryStream(dir,filter) | DirectoryStream newDirectoryStream(Path dir, Filter filter) |
newFileChannel | newFileChannel(path,options,attrs) | FileChannel newFileChannel(Path path, Set options, FileAttribute[] attrs) |
newFileSystem | newFileSystem(uri,env) | FileSystem newFileSystem(URI uri, Map env)FileSystem newFileSystem(Path path, Map env) |
newInputStream | newInputStream(path,options) | InputStream newInputStream(Path path, OpenOption[] options) |
newOutputStream | newOutputStream(path,options) | OutputStream newOutputStream(Path path, OpenOption[] options) |
readAttributes | readAttributes(path,type,options) | BasicFileAttributes readAttributes(Path path, Class type, LinkOption[] options)Map readAttributes(Path path, String attributes, LinkOption[] options) |
readAttributesIfExists | readAttributesIfExists(path,type,options) | BasicFileAttributes readAttributesIfExists(Path path, Class type, LinkOption[] options) |
readSymbolicLink | readSymbolicLink(link) | Path readSymbolicLink(Path link) |
setAttribute | setAttribute(path,attribute,value,options) | void setAttribute(Path path, String attribute, Object value, LinkOption[] options) |
The methods and fields of Object are inherited.
FileTypeDetector#
abstract · extends Object · java.nio.file.spi.FileTypeDetector
Methods
| Method | Ring call | Java overloads |
|---|---|---|
probeContentType | probeContentType(path) | String probeContentType(Path path) |
The methods and fields of Object are inherited.