Class ReadOnlyFileSystemProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
com.norconex.crawler.fs.fetch.impl.ReadOnlyFileSystemProvider
Common read-only
FileSystemProvider behavior shared by cloud and
remote filesystem providers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcheckAccess(Path path, AccessMode... modes) final voidcopy(Path source, Path target, CopyOption... options) final voidcreateDirectory(Path dir, FileAttribute<?>... attrs) final voidprotected abstract Stringfinal <V extends FileAttributeView>
VgetFileAttributeView(Path path, Class<V> type, LinkOption... options) final FileStoregetFileStore(Path path) final booleanfinal booleanisSameFile(Path path, Path path2) final voidmove(Path source, Path target, CopyOption... options) final SeekableByteChannelnewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) readAttributes(Path path, String attributes, LinkOption... options) final voidsetAttribute(Path path, String attribute, Object value, LinkOption... options) Methods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, deleteIfExists, exists, getFileSystem, getPath, getScheme, installedProviders, newAsynchronousFileChannel, newDirectoryStream, newFileChannel, newFileSystem, newFileSystem, newInputStream, newOutputStream, readAttributes, readAttributesIfExists, readSymbolicLink
-
Constructor Details
-
ReadOnlyFileSystemProvider
public ReadOnlyFileSystemProvider()
-
-
Method Details
-
fileSystemLabel
-
newByteChannel
public final SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException
-
readAttributes
- Specified by:
readAttributesin classFileSystemProvider
-
getFileAttributeView
public final <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeViewin classFileSystemProvider
-
checkAccess
- Specified by:
checkAccessin classFileSystemProvider- Throws:
IOException
-
isSameFile
- Specified by:
isSameFilein classFileSystemProvider
-
isHidden
- Specified by:
isHiddenin classFileSystemProvider
-
getFileStore
- Specified by:
getFileStorein classFileSystemProvider
-
createDirectory
- Specified by:
createDirectoryin classFileSystemProvider
-
delete
- Specified by:
deletein classFileSystemProvider
-
copy
- Specified by:
copyin classFileSystemProvider
-
move
- Specified by:
movein classFileSystemProvider
-
setAttribute
- Specified by:
setAttributein classFileSystemProvider
-