Class MessagePropertiesChunk


public class MessagePropertiesChunk extends PropertiesChunk
A PropertiesChunk for a Message or Embedded-Message. This has a 32 byte header
  • Constructor Details

    • MessagePropertiesChunk

      public MessagePropertiesChunk(ChunkGroup parentGroup)
    • MessagePropertiesChunk

      public MessagePropertiesChunk(ChunkGroup parentGroup, boolean isEmbedded)
  • Method Details

    • getNextRecipientId

      public long getNextRecipientId()
    • getNextAttachmentId

      public long getNextAttachmentId()
    • getRecipientCount

      public long getRecipientCount()
    • getAttachmentCount

      public long getAttachmentCount()
    • setNextRecipientId

      public void setNextRecipientId(long nextRecipientId)
    • setNextAttachmentId

      public void setNextAttachmentId(long nextAttachmentId)
    • setRecipientCount

      public void setRecipientCount(long recipientCount)
    • setAttachmentCount

      public void setAttachmentCount(long attachmentCount)
    • readProperties

      protected void readProperties(InputStream stream) throws IOException
      Overrides:
      readProperties in class PropertiesChunk
      Throws:
      IOException
    • readValue

      public void readValue(InputStream value) throws IOException
      Description copied from class: Chunk
      Reads the value of this chunk using an InputStream
      Specified by:
      readValue in class Chunk
      Throws:
      IOException
    • writeProperties

      protected List<PropertyValue> writeProperties(OutputStream stream) throws IOException
      Description copied from class: PropertiesChunk
      Writes the header of the properties.
      Overrides:
      writeProperties in class PropertiesChunk
      Parameters:
      stream - The OutputStream.
      Returns:
      The variable-length properties that need to be written in another node.
      Throws:
      IOException - If an I/O error occurs.
    • writeValue

      public void writeValue(OutputStream stream) throws IOException
      Description copied from class: Chunk
      Writes the value of this chunk back out again.
      Specified by:
      writeValue in class Chunk
      Throws:
      IOException