Class VFolderVFS
java.lang.Object
net.thevpc.common.vfs.impl.AbstractVirtualFileSystem
net.thevpc.common.vfs.impl.AbstractDelegateVirtualFileSystem
net.thevpc.common.vfs.impl.VFolderVFS
- All Implemented Interfaces:
ListFS, VirtualFileSystem
- Author:
- taha.bensalah@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrRename(String name, VFile file, VFileNameGenerator nameGenerator) convenient way to add new file to the folder even if the file name already existsgetDelegate(String path) VFile[]listFiles(String path, VFileFilter fileFilter) voidtoString()Methods inherited from class AbstractDelegateVirtualFileSystem
delete, deleteAll, exists, getACL, getBase, getFileType, getInputStream, getOutputStream, getOutputStream, getSecurityManager, isDirectory, isFile, lastModified, length, mkdir, mkdirsMethods inherited from class AbstractVirtualFileSystem
copyFrom, copyTo, copyTo, copyTo, copyToNativeTempFile, createTempFile, filter, filter, get, get, getId, getParentFile, getRoots, 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, exists, filter, filter, get, get, getACL, getBase, getFileType, getId, getInputStream, getOutputStream, getOutputStream, getParentFile, getRoots, getSecurityManager, isDirectory, isFile, isParentOf, lastModified, length, listFiles, mkdir, mkdirs, probeContentType, readBytes, renameTo, subfs, subfs, write, writeBytes
-
Constructor Details
-
VFolderVFS
-
-
Method Details
-
addOrRename
Description copied from interface:ListFSconvenient way to add new file to the folder even if the file name already exists- Specified by:
addOrRenamein interfaceListFS- Parameters:
name- preferred file namefile- file or directory to add to the listnameGenerator- Name Generator used to generate new name. If null, default one will be used- Returns:
- new Name
-
add
-
remove
-
listFiles
- Specified by:
listFilesin interfaceVirtualFileSystem- Overrides:
listFilesin classAbstractDelegateVirtualFileSystem
-
getDelegate
- Specified by:
getDelegatein classAbstractDelegateVirtualFileSystem
-
toString
-