ChunkGroup, ChunkGroupWithPropertiespublic final class RecipientChunks extends java.lang.Object implements ChunkGroupWithProperties
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RecipientChunks.RecipientChunksSorter |
Orders by the recipient number.
|
| Modifier and Type | Field | Description |
|---|---|---|
static MAPIProperty |
DELIVERY_TYPE |
|
StringChunk |
deliveryTypeChunk |
Normally EX or SMTP.
|
static java.lang.String |
PREFIX |
|
static MAPIProperty |
RECIPIENT_DISPLAY_NAME |
|
static MAPIProperty |
RECIPIENT_EMAIL_ADDRESS |
|
static MAPIProperty |
RECIPIENT_NAME |
|
static MAPIProperty |
RECIPIENT_SEARCH |
|
static MAPIProperty |
RECIPIENT_SMTP_ADDRESS |
|
StringChunk |
recipientDisplayNameChunk |
The display name of the recipient.
|
StringChunk |
recipientEmailChunk |
The email address of the recipient, which
could be in SMTP or SEARCH format, but
isn't always present...
|
StringChunk |
recipientNameChunk |
The "name", which could be their name if an
internal person, or their email address
if an external person
|
int |
recipientNumber |
Our 0 based position in the list of recipients
|
ByteChunk |
recipientSearchChunk |
TODO
|
StringChunk |
recipientSMTPChunk |
The smtp destination email address of
the recipient, but isn't always present...
|
| Constructor | Description |
|---|---|
RecipientChunks(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
chunksComplete() |
Called by the parser when all chunks have been found.
|
Chunk[] |
getAll() |
|
Chunk[] |
getChunks() |
Returns the chunks that make up the group.
|
java.util.Map<MAPIProperty,java.util.List<PropertyValue>> |
getProperties() |
Returns all the Properties contained in the Chunk, along
with their Values.
|
java.lang.String |
getRecipientEmailAddress() |
Tries to find their email address, in
whichever chunk holds it given the
delivery type.
|
java.lang.String |
getRecipientName() |
Tries to find their name,
in whichever chunk holds it.
|
void |
record(Chunk chunk) |
Called by the parser whenever a chunk is found.
|
public static final java.lang.String PREFIX
public static final MAPIProperty RECIPIENT_NAME
public static final MAPIProperty DELIVERY_TYPE
public static final MAPIProperty RECIPIENT_EMAIL_ADDRESS
public static final MAPIProperty RECIPIENT_SEARCH
public static final MAPIProperty RECIPIENT_SMTP_ADDRESS
public static final MAPIProperty RECIPIENT_DISPLAY_NAME
public int recipientNumber
public ByteChunk recipientSearchChunk
public StringChunk recipientNameChunk
public StringChunk recipientEmailChunk
public StringChunk recipientSMTPChunk
public StringChunk deliveryTypeChunk
public StringChunk recipientDisplayNameChunk
public java.lang.String getRecipientName()
public java.lang.String getRecipientEmailAddress()
public java.util.Map<MAPIProperty,java.util.List<PropertyValue>> getProperties()
ChunkGroupWithPropertiesPropertyValue. For variable
sized properties, you'll need to go via the chunk.getProperties in interface ChunkGroupWithPropertiespublic Chunk[] getAll()
public Chunk[] getChunks()
ChunkGroupgetChunks in interface ChunkGrouppublic void record(Chunk chunk)
record in interface ChunkGrouppublic void chunksComplete()
ChunkGroupchunksComplete in interface ChunkGroupCopyright 2018 The Apache Software Foundation or its licensors, as applicable.