|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.pdf.collections.pdffolder
public class pdffolder
a folder for the purpose of organizing files into a hierarchical structure. the structure is represented by a tree with a single root folder acting as the common ancestor for all other folders and files in the collection.
method summary | |
---|---|
void |
addexistfolder(java.lang.string folderpath)
add local folder into this folder. |
void |
addfile(java.lang.string filepath)
add a local file into this folder. |
void |
clear()
clear this folder. |
pdffolder |
createsubfolder(java.lang.string foldername)
reate an subfolder. |
void |
deletefile(pdfattachment file)
delete the file in this folder. |
void |
deletesubfolder(java.lang.string foldername)
delete an subfolder. |
java.util.list<pdfattachment> |
getfiles()
|
java.lang.string |
getname()
(required;extensionlevel3)a file name representing the name of the folder.two sibling folders shall not share the same name following case normalization. |
java.util.list<pdffolder> |
getsubfolders()
|
boolean |
hassubfolders()
whether has subfolders. |
method detail |
---|
public java.lang.string getname()
public void addfile(java.lang.string filepath)
filepath
- the local file path.public void deletefile(pdfattachment file)
file
- the file.public java.util.list<pdfattachment> getfiles()
java.lang.exception
public pdffolder createsubfolder(java.lang.string foldername)
foldername
- the subfolder name.
public void deletesubfolder(java.lang.string foldername)
foldername
- the subfolder name.
java.lang.exception
public java.util.list<pdffolder> getsubfolders()
public boolean hassubfolders()
public void clear()
java.lang.exception
public void addexistfolder(java.lang.string folderpath)
folderpath
-
java.lang.exception
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |