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, setParentContainer
canCopy, canDelete, canRename, exists, getLastModified, getLocalSecurityCallback, getName, getParentContainer, getPath, isSame, setLocalSecurityCallback, setParentContainer
public LocalFolderImpl(java.io.File folderFile)
folderFile
- The real file of type directory wrapped by this VFSContainerpublic java.util.List<VFSItem> getItems()
getItems
在接口中 VFSContainer
public java.util.List<VFSItem> getItems(VFSItemFilter filter)
getItems
在接口中 VFSContainer
public void setDefaultItemFilter(VFSItemFilter defaultFilter)
VFSContainer
setDefaultItemFilter
在接口中 VFSContainer
public VFSStatus copyFrom(VFSItem source)
VFSContainer
copyFrom
在接口中 VFSContainer
source
- the source (must exist)public VFSStatus canWrite()
public VFSStatus rename(java.lang.String newname)
public VFSStatus delete()
VFSItem
public VFSItem resolve(java.lang.String path)
VFSItem
public java.lang.String toString()
toString
在类中 java.lang.Object
public VFSContainer createChildContainer(java.lang.String name)
VFSContainer
createChildContainer
在接口中 VFSContainer
public VFSLeaf createChildLeaf(java.lang.String name)
VFSContainer
createChildLeaf
在接口中 VFSContainer
public VFSItemFilter getDefaultItemFilter()
getDefaultItemFilter
在接口中 VFSContainer
public VFSStatus deleteItems()
deleteItems
在接口中 VFSContainer