pdffolder-ag凯发旗舰厅



com.spire.pdf.collections
class pdffolder

java.lang.object
  extended by com.spire.pdf.collections.pdffolder
all implemented interfaces:
ipdfwrapper

public class pdffolder
extends java.lang.object
implements ipdfwrapper

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

getname

public 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. note:descriptions of file name and case normalization follow this table.
returns:

addfile

public void addfile(java.lang.string filepath)
add a local file into this folder.
parameters:
filepath - the local file path.

deletefile

public void deletefile(pdfattachment file)
delete the file in this folder.
parameters:
file - the file.

getfiles

public java.util.list<pdfattachment> getfiles()
returns:
get the files in this folder.
throws:
java.lang.exception

createsubfolder

public pdffolder createsubfolder(java.lang.string foldername)
reate an subfolder.
parameters:
foldername - the subfolder name.
returns:

deletesubfolder

public void deletesubfolder(java.lang.string foldername)
delete an subfolder.
parameters:
foldername - the subfolder name.
throws:
java.lang.exception

getsubfolders

public java.util.list<pdffolder> getsubfolders()
returns:

hassubfolders

public boolean hassubfolders()
whether has subfolders.
returns:
true or false

clear

public void clear()
clear this folder.
throws:
java.lang.exception

addexistfolder

public void addexistfolder(java.lang.string folderpath)
add local folder into this folder.
parameters:
folderpath -
throws:
java.lang.exception


网站地图