|
|||||||||
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 |