Class MessageSubmissionChunk

java.lang.Object
org.apache.poi.hsmf.datatypes.Chunk
org.apache.poi.hsmf.datatypes.MessageSubmissionChunk

public class MessageSubmissionChunk extends Chunk
A Chunk that holds the details given back by the server at submission time. This includes the date the message was given to the server, and an ID that's used if you want to cancel a message or similar
  • Constructor Details

    • MessageSubmissionChunk

      public MessageSubmissionChunk(String namePrefix, int chunkId, Types.MAPIType type)
      Creates a Byte Chunk.
    • MessageSubmissionChunk

      public MessageSubmissionChunk(int chunkId, Types.MAPIType type)
      Create a Byte Chunk, with the specified type.
  • Method Details

    • 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
    • writeValue

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

      public Calendar getAcceptedAtTime()
      Returns:
      the date that the server accepted the message, as found from the message ID it generated.
    • getSubmissionId

      public String getSubmissionId()
      Returns:
      the full ID that the server generated when it accepted the message.