Package org.apache.poi.hsmf.datatypes
Class RecipientChunks
java.lang.Object
org.apache.poi.hsmf.datatypes.RecipientChunks
- All Implemented Interfaces:
ChunkGroup,ChunkGroupWithProperties
Collection of convenience chunks for the Recip(ient) part of an outlook file.
If a message has multiple recipients, there will be several of these.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOrders by the recipient number. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MAPIPropertyNormally EX or SMTP.static final Stringstatic final MAPIPropertystatic final MAPIPropertystatic final MAPIPropertystatic final MAPIPropertystatic final MAPIPropertyThe display name of the recipient.The email address of the recipient, which could be in SMTP or SEARCH format, but isn't always present...The "name", which could be their name if an internal person, or their email address if an external personintOur 0 based position in the list of recipientsTODOThe smtp destination email address of the recipient, but isn't always present... -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by the parser when all chunks have been found.Chunk[]getAll()Chunk[]Returns the chunks that make up the group.Returns all the Properties contained in the Chunk, along with their Values.Tries to find their email address, in whichever chunk holds it given the delivery type.Tries to find their name, in whichever chunk holds it.voidCalled by the parser whenever a chunk is found.
-
Field Details
-
PREFIX
- See Also:
-
RECIPIENT_NAME
-
DELIVERY_TYPE
-
RECIPIENT_EMAIL_ADDRESS
-
RECIPIENT_SEARCH
-
RECIPIENT_SMTP_ADDRESS
-
RECIPIENT_DISPLAY_NAME
-
recipientNumber
public int recipientNumberOur 0 based position in the list of recipients -
recipientSearchChunk
TODO -
recipientNameChunk
The "name", which could be their name if an internal person, or their email address if an external person -
recipientEmailChunk
The email address of the recipient, which could be in SMTP or SEARCH format, but isn't always present... -
recipientSMTPChunk
The smtp destination email address of the recipient, but isn't always present... -
deliveryTypeChunk
Normally EX or SMTP. Will generally affect where the email address ends up. -
recipientDisplayNameChunk
The display name of the recipient. Normally seems to hold the same value as in recipientNameChunk
-
-
Constructor Details
-
RecipientChunks
-
-
Method Details
-
getRecipientName
Tries to find their name, in whichever chunk holds it. -
getRecipientEmailAddress
Tries to find their email address, in whichever chunk holds it given the delivery type. -
getProperties
Description copied from interface:ChunkGroupWithPropertiesReturns all the Properties contained in the Chunk, along with their Values. Normally, each property will have one value, sometimes none, and rarely multiple (normally for Unknown etc). For fixed sized properties, the value can be fetched straight from thePropertyValue. For variable sized properties, you'll need to go via the chunk.- Specified by:
getPropertiesin interfaceChunkGroupWithProperties
-
getAll
-
getChunks
Description copied from interface:ChunkGroupReturns the chunks that make up the group. Should certainly contain all the interesting Chunks, but needn't always contain all of the Chunks.- Specified by:
getChunksin interfaceChunkGroup
-
record
Called by the parser whenever a chunk is found.- Specified by:
recordin interfaceChunkGroup
-
chunksComplete
public void chunksComplete()Description copied from interface:ChunkGroupCalled by the parser when all chunks have been found.- Specified by:
chunksCompletein interfaceChunkGroup
-