com.liferay.portal.kernel.nio
Class FileSystemProviderWrapper
java.lang.Object
java.nio.file.spi.FileSystemProvider
com.liferay.portal.kernel.nio.FileSystemProviderWrapper
public class FileSystemProviderWrapper
- extends java.nio.file.spi.FileSystemProvider
|
Method Summary |
void |
checkAccess(java.nio.file.Path path,
java.nio.file.AccessMode... modes)
|
void |
copy(java.nio.file.Path sourcePath,
java.nio.file.Path targetPath,
java.nio.file.CopyOption... copyOptions)
|
void |
createDirectory(java.nio.file.Path dirPath,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
|
void |
createLink(java.nio.file.Path linkPath,
java.nio.file.Path existingPath)
|
void |
createSymbolicLink(java.nio.file.Path linkPath,
java.nio.file.Path targetPath,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
|
void |
delete(java.nio.file.Path path)
|
boolean |
deleteIfExists(java.nio.file.Path path)
|
|
getFileAttributeView(java.nio.file.Path path,
Class<V> clazz,
java.nio.file.LinkOption... linkOtions)
|
java.nio.file.FileStore |
getFileStore(java.nio.file.Path path)
|
java.nio.file.FileSystem |
getFileSystem(URI uri)
|
java.nio.file.Path |
getPath(URI uri)
|
String |
getScheme()
|
boolean |
isHidden(java.nio.file.Path path)
|
boolean |
isSameFile(java.nio.file.Path path1,
java.nio.file.Path path2)
|
void |
move(java.nio.file.Path sourcePath,
java.nio.file.Path targetPath,
java.nio.file.CopyOption... copyOptions)
|
AsynchronousFileChannel |
newAsynchronousFileChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
ExecutorService executorService,
java.nio.file.attribute.FileAttribute<?>... fileAttribute)
|
SeekableByteChannel |
newByteChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
|
java.nio.file.DirectoryStream<java.nio.file.Path> |
newDirectoryStream(java.nio.file.Path dirPath,
java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)
|
FileChannel |
newFileChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
|
java.nio.file.FileSystem |
newFileSystem(java.nio.file.Path path,
Map<String,?> env)
|
java.nio.file.FileSystem |
newFileSystem(URI uri,
Map<String,?> env)
|
InputStream |
newInputStream(java.nio.file.Path path,
java.nio.file.OpenOption... openOptions)
|
OutputStream |
newOutputStream(java.nio.file.Path path,
java.nio.file.OpenOption... openOptions)
|
|
readAttributes(java.nio.file.Path path,
Class<A> clazz,
java.nio.file.LinkOption... linkOptions)
|
Map<String,Object> |
readAttributes(java.nio.file.Path path,
String attributes,
java.nio.file.LinkOption... linkOptions)
|
java.nio.file.Path |
readSymbolicLink(java.nio.file.Path link)
|
void |
setAttribute(java.nio.file.Path path,
String attribute,
Object value,
java.nio.file.LinkOption... linkOptions)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemProviderWrapper
public FileSystemProviderWrapper(java.nio.file.spi.FileSystemProvider fileSystemProvider)
checkAccess
public void checkAccess(java.nio.file.Path path,
java.nio.file.AccessMode... modes)
throws IOException
- Specified by:
checkAccess in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
copy
public void copy(java.nio.file.Path sourcePath,
java.nio.file.Path targetPath,
java.nio.file.CopyOption... copyOptions)
throws IOException
- Specified by:
copy in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
createDirectory
public void createDirectory(java.nio.file.Path dirPath,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
throws IOException
- Specified by:
createDirectory in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
createLink
public void createLink(java.nio.file.Path linkPath,
java.nio.file.Path existingPath)
throws IOException
- Overrides:
createLink in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
createSymbolicLink
public void createSymbolicLink(java.nio.file.Path linkPath,
java.nio.file.Path targetPath,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
throws IOException
- Overrides:
createSymbolicLink in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
delete
public void delete(java.nio.file.Path path)
throws IOException
- Specified by:
delete in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
deleteIfExists
public boolean deleteIfExists(java.nio.file.Path path)
throws IOException
- Overrides:
deleteIfExists in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
getFileAttributeView
public <V extends java.nio.file.attribute.FileAttributeView> V getFileAttributeView(java.nio.file.Path path,
Class<V> clazz,
java.nio.file.LinkOption... linkOtions)
- Specified by:
getFileAttributeView in class java.nio.file.spi.FileSystemProvider
getFileStore
public java.nio.file.FileStore getFileStore(java.nio.file.Path path)
throws IOException
- Specified by:
getFileStore in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
getFileSystem
public java.nio.file.FileSystem getFileSystem(URI uri)
- Specified by:
getFileSystem in class java.nio.file.spi.FileSystemProvider
getPath
public java.nio.file.Path getPath(URI uri)
- Specified by:
getPath in class java.nio.file.spi.FileSystemProvider
getScheme
public String getScheme()
- Specified by:
getScheme in class java.nio.file.spi.FileSystemProvider
isHidden
public boolean isHidden(java.nio.file.Path path)
throws IOException
- Specified by:
isHidden in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
isSameFile
public boolean isSameFile(java.nio.file.Path path1,
java.nio.file.Path path2)
throws IOException
- Specified by:
isSameFile in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
move
public void move(java.nio.file.Path sourcePath,
java.nio.file.Path targetPath,
java.nio.file.CopyOption... copyOptions)
throws IOException
- Specified by:
move in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newAsynchronousFileChannel
public AsynchronousFileChannel newAsynchronousFileChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
ExecutorService executorService,
java.nio.file.attribute.FileAttribute<?>... fileAttribute)
throws IOException
- Overrides:
newAsynchronousFileChannel in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newByteChannel
public SeekableByteChannel newByteChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
throws IOException
- Specified by:
newByteChannel in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newDirectoryStream
public java.nio.file.DirectoryStream<java.nio.file.Path> newDirectoryStream(java.nio.file.Path dirPath,
java.nio.file.DirectoryStream.Filter<? super java.nio.file.Path> filter)
throws IOException
- Specified by:
newDirectoryStream in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newFileChannel
public FileChannel newFileChannel(java.nio.file.Path path,
Set<? extends java.nio.file.OpenOption> openOptions,
java.nio.file.attribute.FileAttribute<?>... fileAttributes)
throws IOException
- Overrides:
newFileChannel in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newFileSystem
public java.nio.file.FileSystem newFileSystem(java.nio.file.Path path,
Map<String,?> env)
throws IOException
- Overrides:
newFileSystem in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newFileSystem
public java.nio.file.FileSystem newFileSystem(URI uri,
Map<String,?> env)
throws IOException
- Specified by:
newFileSystem in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newInputStream
public InputStream newInputStream(java.nio.file.Path path,
java.nio.file.OpenOption... openOptions)
throws IOException
- Overrides:
newInputStream in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
newOutputStream
public OutputStream newOutputStream(java.nio.file.Path path,
java.nio.file.OpenOption... openOptions)
throws IOException
- Overrides:
newOutputStream in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
readAttributes
public <A extends java.nio.file.attribute.BasicFileAttributes> A readAttributes(java.nio.file.Path path,
Class<A> clazz,
java.nio.file.LinkOption... linkOptions)
throws IOException
- Specified by:
readAttributes in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
readAttributes
public Map<String,Object> readAttributes(java.nio.file.Path path,
String attributes,
java.nio.file.LinkOption... linkOptions)
throws IOException
- Specified by:
readAttributes in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
readSymbolicLink
public java.nio.file.Path readSymbolicLink(java.nio.file.Path link)
throws IOException
- Overrides:
readSymbolicLink in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException
setAttribute
public void setAttribute(java.nio.file.Path path,
String attribute,
Object value,
java.nio.file.LinkOption... linkOptions)
throws IOException
- Specified by:
setAttribute in class java.nio.file.spi.FileSystemProvider
- Throws:
IOException