Package com.sshtools.vfs2nio
Class Vfs2NioFileSystem
java.lang.Object
java.nio.file.FileSystem
org.apache.nio.BaseFileSystem<Vfs2NioPath,Vfs2NioFileSystemProvider>
com.sshtools.vfs2nio.Vfs2NioFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionVfs2NioFileSystem(Vfs2NioFileSystemProvider provider, org.apache.commons.vfs2.FileObject root, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected Vfs2NioPathcreate(String root, ImmutableList<String> names) getFileAttributes(Vfs2NioPath path) static String[]getPathSegments(Path path) org.apache.commons.vfs2.FileObjectgetRoot()longlonggetUri()longbooleanisOpen()booleaniterator(Path path, DirectoryStream.Filter<? super Path> filter) voidsetTimes(Vfs2NioPath path, FileTime mtime, FileTime atime, FileTime ctime) Methods inherited from class org.apache.nio.BaseFileSystem
appendDedupSep, create, create, getDefaultDir, getFileStores, getPath, getPathMatcher, getRootDirectories, getSeparator, getUserPrincipalLookupService, globToRegex, newWatchService, provider
-
Constructor Details
-
Vfs2NioFileSystem
public Vfs2NioFileSystem(Vfs2NioFileSystemProvider provider, org.apache.commons.vfs2.FileObject root, URI uri) throws org.apache.commons.vfs2.FileSystemException - Throws:
org.apache.commons.vfs2.FileSystemException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem- Throws:
IOException
-
getFileAttributes
-
getUri
-
getRoot
public org.apache.commons.vfs2.FileObject getRoot() -
getTotalSpace
public long getTotalSpace() -
getUnallocatedSpace
public long getUnallocatedSpace() -
getUsableSpace
public long getUsableSpace() -
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()- Overrides:
isReadOnlyin classBaseFileSystem<Vfs2NioPath,Vfs2NioFileSystemProvider>
-
getPathSegments
-
iterator
public Iterator<Path> iterator(Path path, DirectoryStream.Filter<? super Path> filter) throws IOException - Throws:
IOException
-
setTimes
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
create
- Specified by:
createin classBaseFileSystem<Vfs2NioPath,Vfs2NioFileSystemProvider>
-