Class PstAttachmentWriter
java.lang.Object
com.independentsoft.pst.PstAttachmentWriter
Represents a file attachment to be created on a message in a new PST file (write side).
Note: attachment data must currently fit within a single block (~7 KB); larger attachments
(requiring XBLOCK data trees) are not yet supported.
-
Constructor Summary
ConstructorsConstructorDescriptionPstAttachmentWriter(String fileName, byte[] data) Initializes a new instance of thePstAttachmentWriterclass. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()Gets the attachment content.Gets the file name.voidsetData(byte[] data) Sets the attachment content.voidsetFileName(String fileName) Sets the file name.
-
Constructor Details
-
PstAttachmentWriter
Initializes a new instance of thePstAttachmentWriterclass.- Parameters:
fileName- the attachment file name.data- the attachment content.
-
-
Method Details
-
getFileName
-
setFileName
-
getData
public byte[] getData()Gets the attachment content.- Returns:
- the attachment content.
-
setData
public void setData(byte[] data) Sets the attachment content.- Parameters:
data- the attachment content.
-