public class MessagePropertiesChunk extends PropertiesChunk
PropertiesChunk
for a Message or Embedded-Message. This has a 32 byte header
(消息或嵌入式消息的 PropertiesChunk。这有一个 32 字节的标头)
NAME, PROPERTIES_FLAG_READABLE, PROPERTIES_FLAG_WRITEABLE, VARIABLE_LENGTH_PROPERTY_PREFIX
DEFAULT_NAME_PREFIX
Constructor and Description |
---|
MessagePropertiesChunk(ChunkGroup parentGroup) |
MessagePropertiesChunk(ChunkGroup parentGroup, boolean isEmbedded) |
Modifier and Type | Method and Description |
---|---|
long |
getAttachmentCount() |
long |
getNextAttachmentId() |
long |
getNextRecipientId() |
long |
getRecipientCount() |
protected void |
readProperties(java.io.InputStream stream) |
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream
(使用 InputStream 读取此块的值)
|
void |
setAttachmentCount(long attachmentCount) |
void |
setNextAttachmentId(long nextAttachmentId) |
void |
setNextRecipientId(long nextRecipientId) |
void |
setRecipientCount(long recipientCount) |
protected java.util.List<PropertyValue> |
writeProperties(java.io.OutputStream stream)
Writes the header of the properties.
(写入属性的标题。)
|
void |
writeValue(java.io.OutputStream stream)
Writes the value of this chunk back out again.
(再次写出这个块的值。)
|
getEntryName, getProperties, getRawProperties, getRawValue, getValues, matchVariableSizedPropertiesToChunks, setProperty, writeNodeData, writeProperties
getChunkId, getType
public MessagePropertiesChunk(ChunkGroup parentGroup)
public MessagePropertiesChunk(ChunkGroup parentGroup, boolean isEmbedded)
public long getNextRecipientId()
public long getNextAttachmentId()
public long getRecipientCount()
public long getAttachmentCount()
public void setNextRecipientId(long nextRecipientId)
public void setNextAttachmentId(long nextAttachmentId)
public void setRecipientCount(long recipientCount)
public void setAttachmentCount(long attachmentCount)
protected void readProperties(java.io.InputStream stream) throws java.io.IOException
readProperties
in class
PropertiesChunk
java.io.IOException
(java.io.IOException)
public void readValue(java.io.InputStream value) throws java.io.IOException
Chunk
protected java.util.List<PropertyValue> writeProperties(java.io.OutputStream stream) throws java.io.IOException
PropertiesChunk
writeProperties
in class
PropertiesChunk
stream
- The
OutputStream
.
(流 - 输出流。)
java.io.IOException
- If an I/O error occurs.
(java.io.IOException - 如果发生 I/O 错误。)
public void writeValue(java.io.OutputStream stream) throws java.io.IOException
Chunk
writeValue
in class
Chunk
(类 Chunk 中的 writeValue)
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.