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 TypeMethodDescriptionvoidcheckAccess(Path path, AccessMode... modes) voidcopy(Path sourcePath, Path targetPath, CopyOption... copyOptions) voidcreateDirectory(Path dirPath, FileAttribute<?>... fileAttributes) voidcreateLink(Path linkPath, Path existingPath) voidcreateSymbolicLink(Path linkPath, Path targetPath, FileAttribute<?>... fileAttributes) voidbooleandeleteIfExists(Path path) <V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> clazz, LinkOption... linkOtions) getFileStore(Path path) getFileSystem(URI uri) booleanbooleanisSameFile(Path path1, Path path2) voidmove(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) voidsetAttribute(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:
checkAccessin classFileSystemProvider- Throws:
IOException
-
copy
- Specified by:
copyin classFileSystemProvider- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin classFileSystemProvider- Throws:
IOException
-
createLink
- Overrides:
createLinkin classFileSystemProvider- Throws:
IOException
-
createSymbolicLink
public void createSymbolicLink(Path linkPath, Path targetPath, FileAttribute<?>... fileAttributes) throws IOException - Overrides:
createSymbolicLinkin classFileSystemProvider- Throws:
IOException
-
delete
- Specified by:
deletein classFileSystemProvider- Throws:
IOException
-
deleteIfExists
- Overrides:
deleteIfExistsin classFileSystemProvider- Throws:
IOException
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> clazz, LinkOption... linkOtions) - Specified by:
getFileAttributeViewin classFileSystemProvider
-
getFileStore
- Specified by:
getFileStorein classFileSystemProvider- Throws:
IOException
-
getFileSystem
- Specified by:
getFileSystemin classFileSystemProvider
-
getPath
- Specified by:
getPathin classFileSystemProvider
-
getScheme
- Specified by:
getSchemein classFileSystemProvider
-
isHidden
- Specified by:
isHiddenin classFileSystemProvider- Throws:
IOException
-
isSameFile
- Specified by:
isSameFilein classFileSystemProvider- Throws:
IOException
-
move
- Specified by:
movein classFileSystemProvider- Throws:
IOException
-
newAsynchronousFileChannel
public AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> openOptions, ExecutorService executorService, FileAttribute<?>... fileAttribute) throws IOException - Overrides:
newAsynchronousFileChannelin classFileSystemProvider- Throws:
IOException
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException - Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dirPath, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStreamin classFileSystemProvider- Throws:
IOException
-
newFileChannel
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> openOptions, FileAttribute<?>... fileAttributes) throws IOException - Overrides:
newFileChannelin classFileSystemProvider- Throws:
IOException
-
newFileSystem
- Overrides:
newFileSystemin classFileSystemProvider- Throws:
IOException
-
newFileSystem
- Specified by:
newFileSystemin classFileSystemProvider- Throws:
IOException
-
newInputStream
- Overrides:
newInputStreamin classFileSystemProvider- Throws:
IOException
-
newOutputStream
- Overrides:
newOutputStreamin classFileSystemProvider- Throws:
IOException
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> clazz, LinkOption... linkOptions) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... linkOptions) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
readSymbolicLink
- Overrides:
readSymbolicLinkin classFileSystemProvider- Throws:
IOException
-
setAttribute
public void setAttribute(Path path, String attribute, Object value, LinkOption... linkOptions) throws IOException - Specified by:
setAttributein classFileSystemProvider- Throws:
IOException
-