public class LocalFolderImpl extends LocalImpl implements VFSContainer
Initial Date: 23.06.2005
| 构造器和说明 |
|---|
LocalFolderImpl(java.io.File folderFile)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
VFSStatus |
canWrite() |
VFSStatus |
copyFrom(VFSItem source)
copy either a file or a folder to this folder. e.g. this folder is based at /bla/blu, copying source bli (from /whatever/bli) will add a child bli, so it looks
like /bla/blu/bli later. the operation fails when the source or target do not support canCopyFrom and canCopyTo, resp., or there is already a child with the same
name, or the quota would be exceeded.
|
VFSContainer |
createChildContainer(java.lang.String name)
Create a new child container (of same type) if possible.
|
VFSLeaf |
createChildLeaf(java.lang.String name)
Create a new leaf (of same type) if possible,
|
VFSStatus |
delete()
deletes the item. if the item is a container, all children will be deleted recursively
|
VFSStatus |
deleteItems() |
VFSItemFilter |
getDefaultItemFilter() |
java.util.List<VFSItem> |
getItems() |
java.util.List<VFSItem> |
getItems(VFSItemFilter filter) |
VFSStatus |
rename(java.lang.String newname) |
VFSItem |
resolve(java.lang.String path)
a relative path. the implementation will search all its children. e.g. bla/blu/bli.txt this vfsitem's name must thus be 'bla'
|
void |
setDefaultItemFilter(VFSItemFilter defaultFilter)
Set a default filter that will be applied to this container getItems method
|
java.lang.String |
toString() |
canCopy, canDelete, canRename, exists, getBasefile, getLastModified, getLocalSecurityCallback, getName, getParentContainer, getPath, isSame, setLocalSecurityCallback, setParentContainercanCopy, canDelete, canRename, exists, getLastModified, getLocalSecurityCallback, getName, getParentContainer, getPath, isSame, setLocalSecurityCallback, setParentContainerpublic LocalFolderImpl(java.io.File folderFile)
folderFile - The real file of type directory wrapped by this VFSContainerpublic java.util.List<VFSItem> getItems()
getItems 在接口中 VFSContainerpublic java.util.List<VFSItem> getItems(VFSItemFilter filter)
getItems 在接口中 VFSContainerpublic void setDefaultItemFilter(VFSItemFilter defaultFilter)
VFSContainersetDefaultItemFilter 在接口中 VFSContainerpublic VFSStatus copyFrom(VFSItem source)
VFSContainercopyFrom 在接口中 VFSContainersource - the source (must exist)public VFSStatus canWrite()
public VFSStatus rename(java.lang.String newname)
public VFSStatus delete()
VFSItempublic VFSItem resolve(java.lang.String path)
VFSItempublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic VFSContainer createChildContainer(java.lang.String name)
VFSContainercreateChildContainer 在接口中 VFSContainerpublic VFSLeaf createChildLeaf(java.lang.String name)
VFSContainercreateChildLeaf 在接口中 VFSContainerpublic VFSItemFilter getDefaultItemFilter()
getDefaultItemFilter 在接口中 VFSContainerpublic VFSStatus deleteItems()
deleteItems 在接口中 VFSContainer