Class Item
java.lang.Object
com.independentsoft.pst.Item
- Direct Known Subclasses:
Appointment,Contact,DistributionList,Document,Journal,Message,Note,Post,Task
The Class Item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the attachments.Gets the billing information.getBody()Gets the body.byte[]Gets the body html.Gets the body html text.byte[]Gets the body rtf.Gets the categories.Gets the client submit time.intGets the code page.byte[]Gets the conversation index.Gets the conversation topic.Gets the creation time.Gets the creator name.booleanGets the disable full fidelity.Gets the display bcc.Gets the display cc.Gets the display to.com.independentsoft.msg.EncodingGets the encoding.byte[]Gets the entry id.Gets the extended properties.Gets the flag icon.Gets the flag status.intGets the icon index.longgetId()Gets the id.Gets the importance.Gets the in reply to.intGets the internet code page.Gets the internet message id.Gets the internet references.Gets the keywords.Gets the last modification time.Gets the last modifier name.Gets the last verb executed.Gets the last verb execution time.Gets the message class.Gets the message delivery time.com.independentsoft.msg.MessageGets the message file.com.independentsoft.msg.MessagegetMessageFile(com.independentsoft.msg.Encoding encoding) Gets the message file.Gets the message flags.Gets the mileage.Gets the normalized subject.Gets the object type.Gets the original display to.longGets the outlook internal version.Gets the outlook version.longGets the parent id.Gets the priority.Gets the provider submit time.Gets the received by address type.Gets the received by email address.byte[]Gets the received by entry id.Gets the received by name.byte[]Gets the received by search key.Gets the received representing address type.Gets the received representing email address.byte[]Gets the received representing entry id.Gets the received representing name.byte[]Gets the received representing search key.Gets the recipients.Gets the reply-to recipient names.Gets the report text.Gets the report time.byte[]Gets the rtf compressed.booleanGets the rtf in sync.byte[]Gets the search key.Gets the sender address type.Gets the sender email address.byte[]Gets the sender entry id.Gets the sender name.byte[]Gets the sender search key.Gets the sensitivity.Gets the sent representing address type.Gets the sent representing email address.byte[]Gets the sent representing entry id.Gets the sent representing name.byte[]Gets the sent representing search key.intgetSize()Gets the size.Gets the subject.Gets the subject prefix.getTable()Gets the table.Gets the transport message headers.booleanChecks for attachment.booleanChecks if is embedded.booleanisHidden()Checks if is hidden.booleanChecks if is read only.booleanisSystem()Checks if is system.voidsave(OutputStream outputStream) Save.voidsave(OutputStream outputStream, com.independentsoft.msg.Encoding encoding) Save.voidSave.voidSave.voidSave.voidSave.
-
Constructor Details
-
Item
public Item() -
Item
-
Item
public Item(com.independentsoft.msg.Message message) Initializes a newItemfrom aMessage(e.g. one loaded from a .msg file). This is the reverse ofgetMessageFile(): it copies the message's properties, recipients and attachments into the item, ready to be added to a folder with addItem.- Parameters:
message- the source message.
-
-
Method Details
-
save
Save.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathencoding- the encoding- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathoverwrite- the overwrite- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
public void save(String filePath, boolean overwrite, com.independentsoft.msg.Encoding encoding) throws IOException Save.- Parameters:
filePath- the file pathoverwrite- the overwriteencoding- the encoding- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
outputStream- the output stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
public void save(OutputStream outputStream, com.independentsoft.msg.Encoding encoding) throws IOException Save.- Parameters:
outputStream- the output streamencoding- the encoding- Throws:
IOException- Signals that an I/O exception has occurred.
-
getMessageFile
public com.independentsoft.msg.Message getMessageFile()Gets the message file.- Returns:
- the message file
-
getMessageFile
public com.independentsoft.msg.Message getMessageFile(com.independentsoft.msg.Encoding encoding) Gets the message file.- Parameters:
encoding- the encoding- Returns:
- the message file
-
getId
public long getId()Gets the id.- Returns:
- the id
-
getParentId
public long getParentId()Gets the parent id.- Returns:
- the parent id
-
getTable
-
getMessageClass
-
getSubject
-
getSubjectPrefix
-
getNormalizedSubject
-
getBody
-
getBodyHtml
public byte[] getBodyHtml()Gets the body html.- Returns:
- the body html
-
getBodyHtmlText
-
getBodyRtf
public byte[] getBodyRtf()Gets the body rtf.- Returns:
- the body rtf
-
getRtfCompressed
public byte[] getRtfCompressed()Gets the rtf compressed.- Returns:
- the rtf compressed
-
getSearchKey
public byte[] getSearchKey()Gets the search key.- Returns:
- the search key
-
getEntryId
public byte[] getEntryId()Gets the entry id.- Returns:
- the entry id
-
getCreationTime
-
getLastModificationTime
Gets the last modification time.- Returns:
- the last modification time
-
getCreatorName
-
getLastModifierName
-
getIconIndex
public int getIconIndex()Gets the icon index.- Returns:
- the icon index
-
getSize
public int getSize()Gets the size.- Returns:
- the size
-
getInternetCodePage
public int getInternetCodePage()Gets the internet code page.- Returns:
- the internet code page
-
isHidden
public boolean isHidden()Checks if is hidden.- Returns:
- true, if is hidden
-
isReadOnly
public boolean isReadOnly()Checks if is read only.- Returns:
- true, if is read only
-
isSystem
public boolean isSystem()Checks if is system.- Returns:
- true, if is system
-
getDisableFullFidelity
public boolean getDisableFullFidelity()Gets the disable full fidelity.- Returns:
- the disable full fidelity
-
hasAttachment
public boolean hasAttachment()Checks for attachment.- Returns:
- true, if successful
-
getRtfInSync
public boolean getRtfInSync()Gets the rtf in sync.- Returns:
- the rtf in sync
-
getSensitivity
-
getFlagStatus
-
getObjectType
-
getMessageFlags
-
getOutlookVersion
-
getOutlookInternalVersion
public long getOutlookInternalVersion()Gets the outlook internal version.- Returns:
- the outlook internal version
-
getKeywords
-
getCategories
-
getBillingInformation
Gets the billing information.- Returns:
- the billing information
-
getMileage
-
getEncoding
public com.independentsoft.msg.Encoding getEncoding()Gets the encoding.- Returns:
- the encoding
-
isEmbedded
public boolean isEmbedded()Checks if is embedded.- Returns:
- true, if is embedded
-
getRecipients
-
getAttachments
-
getExtendedProperties
Gets the extended properties.- Returns:
- the extended properties
-
getReceivedRepresentingAddressType
Gets the received representing address type.- Returns:
- the received representing address type
-
getReceivedRepresentingEmailAddress
Gets the received representing email address.- Returns:
- the received representing email address
-
getReceivedRepresentingEntryId
public byte[] getReceivedRepresentingEntryId()Gets the received representing entry id.- Returns:
- the received representing entry id
-
getReceivedRepresentingName
Gets the received representing name.- Returns:
- the received representing name
-
getReceivedRepresentingSearchKey
public byte[] getReceivedRepresentingSearchKey()Gets the received representing search key.- Returns:
- the received representing search key
-
getReceivedByAddressType
Gets the received by address type.- Returns:
- the received by address type
-
getReceivedByEmailAddress
Gets the received by email address.- Returns:
- the received by email address
-
getReceivedByEntryId
public byte[] getReceivedByEntryId()Gets the received by entry id.- Returns:
- the received by entry id
-
getReceivedByName
-
getReceivedBySearchKey
public byte[] getReceivedBySearchKey()Gets the received by search key.- Returns:
- the received by search key
-
getSenderAddressType
-
getSenderEmailAddress
Gets the sender email address.- Returns:
- the sender email address
-
getSenderEntryId
public byte[] getSenderEntryId()Gets the sender entry id.- Returns:
- the sender entry id
-
getSenderName
-
getSenderSearchKey
public byte[] getSenderSearchKey()Gets the sender search key.- Returns:
- the sender search key
-
getSentRepresentingAddressType
Gets the sent representing address type.- Returns:
- the sent representing address type
-
getSentRepresentingEmailAddress
Gets the sent representing email address.- Returns:
- the sent representing email address
-
getSentRepresentingEntryId
public byte[] getSentRepresentingEntryId()Gets the sent representing entry id.- Returns:
- the sent representing entry id
-
getSentRepresentingName
Gets the sent representing name.- Returns:
- the sent representing name
-
getSentRepresentingSearchKey
public byte[] getSentRepresentingSearchKey()Gets the sent representing search key.- Returns:
- the sent representing search key
-
getTransportMessageHeaders
Gets the transport message headers.- Returns:
- the transport message headers
-
getLastVerbExecuted
Gets the last verb executed.- Returns:
- the last verb executed
-
getImportance
-
getPriority
-
getFlagIcon
-
getConversationTopic
-
getDisplayBcc
-
getDisplayCc
-
getDisplayTo
-
getOriginalDisplayTo
-
getConversationIndex
public byte[] getConversationIndex()Gets the conversation index.- Returns:
- the conversation index
-
getInternetMessageId
-
getInReplyTo
-
getReplyTo
-
getInternetReferences
Gets the internet references.- Returns:
- the internet references
-
getCodePage
public int getCodePage()Gets the code page.- Returns:
- the code page
-
getMessageDeliveryTime
Gets the message delivery time.- Returns:
- the message delivery time
-
getClientSubmitTime
-
getProviderSubmitTime
Gets the provider submit time.- Returns:
- the provider submit time
-
getReportTime
-
getReportText
-
getLastVerbExecutionTime
Gets the last verb execution time.- Returns:
- the last verb execution time
-