public class FileSystemProviderWrapper
extends FileSystemProvider
Constructor and Description |
---|
FileSystemProviderWrapper(FileSystemProvider fileSystemProvider) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(Path path,
AccessMode... modes) |
void |
copy(Path sourcePath,
Path targetPath,
CopyOption... copyOptions) |
void |
createDirectory(Path dirPath,
FileAttribute<?>... fileAttributes) |
void |
createLink(Path linkPath,
Path existingPath) |
void |
createSymbolicLink(Path linkPath,
Path targetPath,
FileAttribute<?>... fileAttributes) |
void |
delete(Path path) |
boolean |
deleteIfExists(Path path) |
<V extends FileAttributeView> |
getFileAttributeView(Path path,
Class<V> clazz,
LinkOption... linkOtions) |
FileStore |
getFileStore(Path path) |
FileSystem |
getFileSystem(URI uri) |
Path |
getPath(URI uri) |
String |
getScheme() |
boolean |
isHidden(Path path) |
boolean |
isSameFile(Path path1,
Path path2) |
void |
move(Path sourcePath,
Path targetPath,
CopyOption... copyOptions) |
AsynchronousFileChannel |
newAsynchronousFileChannel(Path path,
Set<? extends OpenOption> openOptions,
ExecutorService executorService,
FileAttribute<?>... fileAttribute) |
SeekableByteChannel |
newByteChannel(Path path,
Set<? extends OpenOption> openOptions,
FileAttribute<?>... fileAttributes) |
DirectoryStream<Path> |
newDirectoryStream(Path dirPath,
DirectoryStream.Filter<? super Path> filter) |
FileChannel |
newFileChannel(Path path,
Set<? extends OpenOption> openOptions,
FileAttribute<?>... fileAttributes) |
FileSystem |
newFileSystem(Path path,
Map<String,?> env) |
FileSystem |
newFileSystem(URI uri,
Map<String,?> env) |
InputStream |
newInputStream(Path path,
OpenOption... openOptions) |
OutputStream |
newOutputStream(Path path,
OpenOption... openOptions) |
<A extends BasicFileAttributes> |
readAttributes(Path path,
Class<A> clazz,
LinkOption... linkOptions) |
Map<String,Object> |
readAttributes(Path path,
String attributes,
LinkOption... linkOptions) |
Path |
readSymbolicLink(Path link) |
void |
setAttribute(Path path,
String attribute,
Object value,
LinkOption... linkOptions) |
public FileSystemProviderWrapper(FileSystemProvider fileSystemProvider)
public void checkAccess(Path path, AccessMode... modes) throws IOException
checkAccess
in class FileSystemProvider
IOException
public void copy(Path sourcePath, Path targetPath, CopyOption... copyOptions) throws IOException
copy
in class FileSystemProvider
IOException
public void createDirectory(Path dirPath, FileAttribute<?>... fileAttributes) throws IOException
createDirectory
in class FileSystemProvider
IOException
public void createLink(Path linkPath, Path existingPath) throws IOException
createLink
in class FileSystemProvider
IOException
public void createSymbolicLink(Path linkPath, Path targetPath, FileAttribute<?>... fileAttributes) throws IOException
createSymbolicLink
in class FileSystemProvider
IOException
public void delete(Path path) throws IOException
delete
in class FileSystemProvider
IOException
public boolean deleteIfExists(Path path) throws IOException
deleteIfExists
in class FileSystemProvider
IOException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> clazz, LinkOption... linkOtions)
getFileAttributeView
in class FileSystemProvider
public FileStore getFileStore(Path path) throws IOException
getFileStore
in class FileSystemProvider
IOException
public FileSystem getFileSystem(URI uri)
getFileSystem
in class FileSystemProvider
public Path getPath(URI uri)
getPath
in class FileSystemProvider
public String getScheme()
getScheme
in class FileSystemProvider
public boolean isHidden(Path path) throws IOException
isHidden
in class FileSystemProvider
IOException
public boolean isSameFile(Path path1, Path path2) throws IOException
isSameFile
in class FileSystemProvider
IOException
public void move(Path sourcePath, Path targetPath, CopyOption... copyOptions) throws IOException
move
in class FileSystemProvider
IOException
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> openOptions, ExecutorService executorService, FileAttribute<?>... fileAttribute) throws IOException
newAsynchronousFileChannel
in class FileSystemProvider
IOException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException
newByteChannel
in class FileSystemProvider
IOException
public DirectoryStream<Path> newDirectoryStream(Path dirPath, DirectoryStream.Filter<? super Path> filter) throws IOException
newDirectoryStream
in class FileSystemProvider
IOException
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException
newFileChannel
in class FileSystemProvider
IOException
public FileSystem newFileSystem(Path path, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public InputStream newInputStream(Path path, OpenOption... openOptions) throws IOException
newInputStream
in class FileSystemProvider
IOException
public OutputStream newOutputStream(Path path, OpenOption... openOptions) throws IOException
newOutputStream
in class FileSystemProvider
IOException
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> clazz, LinkOption... linkOptions) throws IOException
readAttributes
in class FileSystemProvider
IOException
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... linkOptions) throws IOException
readAttributes
in class FileSystemProvider
IOException
public Path readSymbolicLink(Path link) throws IOException
readSymbolicLink
in class FileSystemProvider
IOException
public void setAttribute(Path path, String attribute, Object value, LinkOption... linkOptions) throws IOException
setAttribute
in class FileSystemProvider
IOException