|
|||||||||
| 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.
| Constructor Summary | |
|---|---|
PdfFolder(PdfDictionary dictFolder,
PdfAttachmentCollection embeddedFiles)
|
|
PdfFolder(java.lang.String name,
PdfAttachmentCollection embeddedFiles)
|
|
| 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 |
addFile(java.lang.String fileName,
java.io.InputStream stream)
Add a stream 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()
Get the subfolders of this folder. |
boolean |
hasSubfolders()
Whether has subfolders. |
| Constructor Detail |
|---|
public PdfFolder(java.lang.String name,
PdfAttachmentCollection embeddedFiles)
public PdfFolder(PdfDictionary dictFolder,
PdfAttachmentCollection embeddedFiles)
| Method Detail |
|---|
public java.lang.String getName()
public void addFile(java.lang.String filePath)
filePath - The local file path.
public void addFile(java.lang.String fileName,
java.io.InputStream stream)
fileName - The file name of the stream.stream - The stream.public void deleteFile(PdfAttachment file)
file - The file.public java.util.List<PdfAttachment> getFiles()
public PdfFolder createSubfolder(java.lang.String folderName)
folderName - The subfolder name.
public void deleteSubfolder(java.lang.String folderName)
folderName - The subfolder name.public java.util.List<PdfFolder> getSubfolders()
public boolean hasSubfolders()
public void clear()
public void addExistFolder(java.lang.String folderPath)
folderPath -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||