Class PstFolderWriter
java.lang.Object
com.independentsoft.pst.PstFolderWriter
Represents a folder to be created in a new PST file (write side). Build a tree of these via
addFolder(String) and pass the containing PstStoreWriter to save.-
Constructor Summary
ConstructorsConstructorDescriptionPstFolderWriter(String displayName) Initializes a new instance of thePstFolderWriterclass. -
Method Summary
Modifier and TypeMethodDescriptionAdds a sub-folder with the specified display name and returns it.addMessage(String subject, String body) Adds a plain-text message (IPM.Note) to this folder and returns it.Gets the display name.Gets the sub-folders of this folder.Gets the messages contained in this folder.voidsetDisplayName(String displayName) Sets the display name.
-
Constructor Details
-
PstFolderWriter
Initializes a new instance of thePstFolderWriterclass.- Parameters:
displayName- the folder display name.
-
-
Method Details
-
getDisplayName
-
setDisplayName
Sets the display name.- Parameters:
displayName- the display name.
-
getFolders
Gets the sub-folders of this folder.- Returns:
- the sub-folders.
-
addFolder
Adds a sub-folder with the specified display name and returns it.- Parameters:
displayName- the sub-folder display name.- Returns:
- the created
PstFolderWriter.
-
getMessages
Gets the messages contained in this folder.- Returns:
- the messages.
-
addMessage
Adds a plain-text message (IPM.Note) to this folder and returns it.- Parameters:
subject- the message subject.body- the message body (plain text).- Returns:
- the created
PstMessageWriter.
-