Class DefaultMountableVFS
java.lang.Object
net.thevpc.common.vfs.impl.AbstractVirtualFileSystem
net.thevpc.common.vfs.impl.AbstractDelegateVirtualFileSystem
net.thevpc.common.vfs.impl.DefaultMountableVFS
- All Implemented Interfaces:
MountableFS, VirtualFileSystem
- Author:
- taha.bensalah@gmail.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classstatic classstatic classprotected static classprotected static classprotected static classprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDelegate(String path) protected DefaultMountableVFS.NodegetRoot()VFile[]getRoots()booleanisDirectory(String path) VFile[]listFiles(String path, VFileFilter fileFilter) protected static DefaultMountableVFS.Nodeprotected static DefaultMountableVFS.NodemergeNodes(DefaultMountableVFS.Node... all) voidmount folder (from another File System)voidmount folder (from another File System)voidmountEmptyFolder(String path) toString()voidMethods inherited from class AbstractDelegateVirtualFileSystem
delete, deleteAll, getACL, getFileType, getInputStream, getOutputStream, getOutputStream, getSecurityManager, isFile, lastModified, length, mkdir, mkdirsMethods inherited from class AbstractVirtualFileSystem
copyFrom, copyTo, copyTo, copyTo, copyToNativeTempFile, createTempFile, filter, filter, get, getId, getParentFile, isParentOf, listFiles, newFile, normalizeVirtualPath, probeContentType, readBytes, renameTo, subfs, subfs, toNativeFile, toNativePath, toPathString, toPathString, toVirtualPath, write, writeBytesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface VirtualFileSystem
copyFrom, copyTo, copyTo, copyTo, copyToNativeTempFile, createTempFile, delete, deleteAll, filter, filter, get, getACL, getFileType, getId, getInputStream, getOutputStream, getOutputStream, getParentFile, getSecurityManager, isFile, isParentOf, lastModified, length, listFiles, mkdir, mkdirs, probeContentType, readBytes, renameTo, subfs, subfs, write, writeBytes
-
Constructor Details
-
DefaultMountableVFS
-
-
Method Details
-
mountEmptyFolder
- Specified by:
mountEmptyFolderin interfaceMountableFS- Throws:
IOException
-
mount
Description copied from interface:MountableFSmount folder (from another File System)- Specified by:
mountin interfaceMountableFS- Parameters:
path- path to mount tofileOrFolder- for to mount- Throws:
IOException- error when
-
mount
Description copied from interface:MountableFSmount folder (from another File System)- Specified by:
mountin interfaceMountableFS- Parameters:
path- path to mount tofileOrFolder- for to mountrename- if a file with the same file exists rename it- Throws:
IOException- error when
-
get
- Specified by:
getin interfaceVirtualFileSystem- Overrides:
getin classAbstractVirtualFileSystem
-
isDirectory
- Specified by:
isDirectoryin interfaceVirtualFileSystem- Overrides:
isDirectoryin classAbstractDelegateVirtualFileSystem
-
listFiles
- Specified by:
listFilesin interfaceVirtualFileSystem- Overrides:
listFilesin classAbstractDelegateVirtualFileSystem
-
umount
- Specified by:
umountin interfaceMountableFS- Throws:
IOException
-
exists
- Specified by:
existsin interfaceVirtualFileSystem- Overrides:
existsin classAbstractDelegateVirtualFileSystem
-
getDelegate
- Specified by:
getDelegatein classAbstractDelegateVirtualFileSystem
-
getBase
- Specified by:
getBasein interfaceVirtualFileSystem- Overrides:
getBasein classAbstractDelegateVirtualFileSystem
-
getRoots
- Specified by:
getRootsin interfaceVirtualFileSystem- Overrides:
getRootsin classAbstractVirtualFileSystem
-
getRoot
-
mergeNodes
-
mergeNodes
-
toString
-