Package com.liferay.portal.kernel.nio
Class FileSystemProviderWrapper
Object
FileSystemProvider
com.liferay.portal.kernel.nio.FileSystemProviderWrapper
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
boolean
deleteIfExists
(Path path) <V extends FileAttributeView>
VgetFileAttributeView
(Path path, Class<V> clazz, LinkOption... linkOtions) getFileStore
(Path path) getFileSystem
(URI uri) boolean
boolean
isSameFile
(Path path1, Path path2) void
move
(Path sourcePath, Path targetPath, CopyOption... copyOptions) newAsynchronousFileChannel
(Path path, Set<? extends OpenOption> openOptions, ExecutorService executorService, FileAttribute<?>... fileAttribute) newByteChannel
(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) newDirectoryStream
(Path dirPath, DirectoryStream.Filter<? super Path> filter) newFileChannel
(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) newFileSystem
(URI uri, Map<String, ?> env) newFileSystem
(Path path, Map<String, ?> env) newInputStream
(Path path, OpenOption... openOptions) newOutputStream
(Path path, OpenOption... openOptions) <A extends BasicFileAttributes>
AreadAttributes
(Path path, Class<A> clazz, LinkOption... linkOptions) readAttributes
(Path path, String attributes, LinkOption... linkOptions) readSymbolicLink
(Path link) void
setAttribute
(Path path, String attribute, Object value, LinkOption... linkOptions) Methods inherited from class java.nio.file.spi.FileSystemProvider
installedProviders
-
Constructor Details
-
FileSystemProviderWrapper
-
-
Method Details
-
checkAccess
- Specified by:
checkAccess
in classFileSystemProvider
- Throws:
IOException
-
copy
- Specified by:
copy
in classFileSystemProvider
- Throws:
IOException
-
createDirectory
- Specified by:
createDirectory
in classFileSystemProvider
- Throws:
IOException
-
createLink
- Overrides:
createLink
in classFileSystemProvider
- Throws:
IOException
-
createSymbolicLink
public void createSymbolicLink(Path linkPath, Path targetPath, FileAttribute<?>... fileAttributes) throws IOException - Overrides:
createSymbolicLink
in classFileSystemProvider
- Throws:
IOException
-
delete
- Specified by:
delete
in classFileSystemProvider
- Throws:
IOException
-
deleteIfExists
- Overrides:
deleteIfExists
in classFileSystemProvider
- Throws:
IOException
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> clazz, LinkOption... linkOtions) - Specified by:
getFileAttributeView
in classFileSystemProvider
-
getFileStore
- Specified by:
getFileStore
in classFileSystemProvider
- Throws:
IOException
-
getFileSystem
- Specified by:
getFileSystem
in classFileSystemProvider
-
getPath
- Specified by:
getPath
in classFileSystemProvider
-
getScheme
- Specified by:
getScheme
in classFileSystemProvider
-
isHidden
- Specified by:
isHidden
in classFileSystemProvider
- Throws:
IOException
-
isSameFile
- Specified by:
isSameFile
in classFileSystemProvider
- Throws:
IOException
-
move
- Specified by:
move
in classFileSystemProvider
- Throws:
IOException
-
newAsynchronousFileChannel
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> openOptions, ExecutorService executorService, FileAttribute<?>... fileAttribute) throws IOException - Overrides:
newAsynchronousFileChannel
in classFileSystemProvider
- Throws:
IOException
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException - Specified by:
newByteChannel
in classFileSystemProvider
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dirPath, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStream
in classFileSystemProvider
- Throws:
IOException
-
newFileChannel
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException - Overrides:
newFileChannel
in classFileSystemProvider
- Throws:
IOException
-
newFileSystem
- Overrides:
newFileSystem
in classFileSystemProvider
- Throws:
IOException
-
newFileSystem
- Specified by:
newFileSystem
in classFileSystemProvider
- Throws:
IOException
-
newInputStream
- Overrides:
newInputStream
in classFileSystemProvider
- Throws:
IOException
-
newOutputStream
- Overrides:
newOutputStream
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> clazz, LinkOption... linkOptions) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... linkOptions) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
readSymbolicLink
- Overrides:
readSymbolicLink
in classFileSystemProvider
- Throws:
IOException
-
setAttribute
public void setAttribute(Path path, String attribute, Object value, LinkOption... linkOptions) throws IOException - Specified by:
setAttribute
in classFileSystemProvider
- Throws:
IOException
-