public class MessagePropertiesChunk extends PropertiesChunk
PropertiesChunk
for a Message or Embedded-Message. This has a 32
byte headerNAME, 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
|
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
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.public void writeValue(java.io.OutputStream stream) throws java.io.IOException
Chunk
writeValue
in class Chunk
java.io.IOException
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.