public final class SystemJimfsFileSystemProvider extends FileSystemProvider
FileSystemProvider
implementation for Jimfs that is loaded by the system as a service.
This implementation only serves as a cache for file system instances and does not implement
actual file system operations.
While this class is public, it should not be used directly. To create a new file system
instance, see Jimfs
. For other operations, use the public APIs in java.nio.file
.
Constructor and Description |
---|
SystemJimfsFileSystemProvider()
Deprecated.
Not intended to be called directly; this class is only for use by Java itself.
|
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, newFileChannel, newInputStream, newOutputStream, readSymbolicLink
@Deprecated public SystemJimfsFileSystemProvider()
public String getScheme()
getScheme
in class FileSystemProvider
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public FileSystem getFileSystem(URI uri)
getFileSystem
in class FileSystemProvider
public Path getPath(URI uri)
getPath
in class FileSystemProvider
public FileSystem newFileSystem(Path path, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public static Runnable removeFileSystemRunnable(URI uri)
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newByteChannel
in class FileSystemProvider
IOException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException
newDirectoryStream
in class FileSystemProvider
IOException
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory
in class FileSystemProvider
IOException
public void delete(Path path) throws IOException
delete
in class FileSystemProvider
IOException
public void copy(Path source, Path target, CopyOption... options) throws IOException
copy
in class FileSystemProvider
IOException
public void move(Path source, Path target, CopyOption... options) throws IOException
move
in class FileSystemProvider
IOException
public boolean isSameFile(Path path, Path path2) throws IOException
isSameFile
in class FileSystemProvider
IOException
public boolean isHidden(Path path) throws IOException
isHidden
in class FileSystemProvider
IOException
public FileStore getFileStore(Path path) throws IOException
getFileStore
in class FileSystemProvider
IOException
public void checkAccess(Path path, AccessMode... modes) throws IOException
checkAccess
in class FileSystemProvider
IOException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options)
getFileAttributeView
in class FileSystemProvider
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException
readAttributes
in class FileSystemProvider
IOException
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException
readAttributes
in class FileSystemProvider
IOException
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
setAttribute
in class FileSystemProvider
IOException
Copyright © 2013–2017 Google Inc.. All rights reserved.