public final class RecipientChunks extends Object implements ChunkGroupWithProperties
| Modifier and Type | Class and Description |
|---|---|
static class |
RecipientChunks.RecipientChunksSorter
Orders by the recipient number.
|
| Modifier and Type | Field and Description |
|---|---|
static MAPIProperty |
DELIVERY_TYPE |
static 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 |
| Constructor and Description |
|---|
RecipientChunks(String name) |
| Modifier and Type | Method and 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.
|
StringChunk |
getDeliveryTypeChunk() |
Map<MAPIProperty,List<PropertyValue>> |
getProperties()
Returns all the Properties contained in the Chunk, along with their
Values.
|
StringChunk |
getRecipientDisplayNameChunk() |
String |
getRecipientEmailAddress()
Tries to find their email address, in whichever chunk holds it given the
delivery type.
|
StringChunk |
getRecipientEmailChunk() |
String |
getRecipientName()
Tries to find their name, in whichever chunk holds it.
|
StringChunk |
getRecipientNameChunk() |
int |
getRecipientNumber() |
ByteChunk |
getRecipientSearchChunk() |
StringChunk |
getRecipientSMTPChunk() |
void |
record(Chunk chunk)
Called by the parser whenever a chunk is found.
|
public static final 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 RecipientChunks(String name)
public int getRecipientNumber()
public ByteChunk getRecipientSearchChunk()
public StringChunk getRecipientNameChunk()
public StringChunk getRecipientEmailChunk()
public StringChunk getRecipientSMTPChunk()
public StringChunk getDeliveryTypeChunk()
public StringChunk getRecipientDisplayNameChunk()
public String getRecipientName()
public String getRecipientEmailAddress()
public Map<MAPIProperty,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 ChunkGroup