Package no.maddin.niofs.webdav
Class WebdavFileSystemProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
no.maddin.niofs.webdav.WebdavFileSystemProvider
- Direct Known Subclasses:
WebdavsFileSystemProvider
The WebDAV FileSystemProvider based on Sardine.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAccess(Path path, AccessMode... modes) voidcopy(Path fileFrom, Path fileTo, CopyOption... options) voidcreateDirectory(Path dir, FileAttribute<?>... attrs) voidbooleandeleteIfExists(Path path) The default implementation in FileSystemProvider will simply call delete() in deleteIfExists() and silently ignore any NoSuchFileException.<V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> type, LinkOption... options) UnsupportedgetFileStore(Path path) UnsupportedgetFileSystem(URI uri) booleanUnsupportedbooleanisSameFile(Path path, Path path2) Unsupportedvoidmove(Path source, Path target, CopyOption... options) UnsupportednewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream(Path path, DirectoryStream.Filter<? super Path> filter) newFileSystem(URI uri, Map<String, ?> env) <A extends BasicFileAttributes>
AreadAttributes(Path path, Class<A> type, LinkOption... options) readAttributes(Path path, String attributes, LinkOption... arg2) voidsetAttribute(Path arg0, String arg1, Object arg2, LinkOption... arg3) UnsupportedMethods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, exists, installedProviders, newAsynchronousFileChannel, newFileChannel, newFileSystem, newInputStream, newOutputStream, readAttributesIfExists, readSymbolicLink
-
Field Details
-
log
Logger log
-
-
Constructor Details
-
WebdavFileSystemProvider
public WebdavFileSystemProvider()
-
-
Method Details
-
copy
- Specified by:
copyin classFileSystemProvider- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin classFileSystemProvider- Throws:
IOException
-
delete
- Specified by:
deletein classFileSystemProvider- Throws:
IOException
-
deleteIfExists
The default implementation in FileSystemProvider will simply call delete() in deleteIfExists() and silently ignore any NoSuchFileException. In case of Nexus, trying to delete() will result in 503 (Not allowed) even if the path points to nowhere.- Overrides:
deleteIfExistsin classFileSystemProvider- Throws:
IOException
-
getFileSystem
- Specified by:
getFileSystemin classFileSystemProvider
-
getPath
- Specified by:
getPathin classFileSystemProvider
-
getScheme
- Specified by:
getSchemein classFileSystemProvider
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) Unsupported- Specified by:
getFileAttributeViewin classFileSystemProvider
-
getFileStore
Unsupported- Specified by:
getFileStorein classFileSystemProvider
-
checkAccess
- Specified by:
checkAccessin classFileSystemProvider- Throws:
IOException
-
isHidden
Unsupported- Specified by:
isHiddenin classFileSystemProvider
-
isSameFile
Unsupported- Specified by:
isSameFilein classFileSystemProvider
-
move
Unsupported- Specified by:
movein classFileSystemProvider
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path path, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStreamin classFileSystemProvider- Throws:
IOException
-
newFileSystem
- Specified by:
newFileSystemin classFileSystemProvider- Throws:
IOException
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... arg2) throws IOException - Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException
-
setAttribute
Unsupported- Specified by:
setAttributein classFileSystemProvider
-