public final class RecipientChunks extends java.lang.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 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 |
| Constructor and Description |
|---|
RecipientChunks(java.lang.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() |
java.util.Map<MAPIProperty,java.util.List<PropertyValue>> |
getProperties()
Returns all the Properties contained in the Chunk, along with their
Values.
|
StringChunk |
getRecipientDisplayNameChunk() |
java.lang.String |
getRecipientEmailAddress()
Tries to find their email address, in whichever chunk holds it given the
delivery type.
|
StringChunk |
getRecipientEmailChunk() |
java.lang.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 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 getRecipientNumber()
public ByteChunk getRecipientSearchChunk()
public StringChunk getRecipientNameChunk()
public StringChunk getRecipientEmailChunk()
public StringChunk getRecipientSMTPChunk()
public StringChunk getDeliveryTypeChunk()
public StringChunk getRecipientDisplayNameChunk()
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 2022 The Apache Software Foundation or its licensors, as applicable.