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()
ChunkGroupWithProperties
PropertyValue
. For variable sized properties, you'll need to go via the chunk.
(返回块中包含的所有属性及其值。通常,每个属性都有一个值,有时没有,很少有多个(通常用于未知等)。对于固定大小的属性,可以直接从 PropertyValue 中获取值。对于可变大小的属性,您需要通过块。)
getProperties
in interface
ChunkGroupWithProperties
(接口 ChunkGroupWithProperties 中的 getProperties)
public Chunk[] getAll()
public Chunk[] getChunks()
ChunkGroup
getChunks
in interface
ChunkGroup
(接口 ChunkGroup 中的 getChunks)
public void record(Chunk chunk)
record
in interface
ChunkGroup
()
public void chunksComplete()
ChunkGroup
chunksComplete
in interface
ChunkGroup
(接口 ChunkGroup 中的 chunksComplete)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.