Package org.apache.poi.hsmf.datatypes
Class Chunks
- java.lang.Object
-
- org.apache.poi.hsmf.datatypes.Chunks
-
- All Implemented Interfaces:
ChunkGroup,ChunkGroupWithProperties
public final class Chunks extends Object implements ChunkGroupWithProperties
Collection of convenience chunks for standard parts of the MSG file. Not all of these will be present in any given file. A partial list is available at: http://msdn.microsoft.com/en-us/library/ms526356%28v=exchg.10%29.aspx TODO Deprecate the public Chunks in favour of Property Lookups
-
-
Constructor Summary
Constructors Constructor Description Chunks()
-
Method Summary
-
-
-
Method Detail
-
getProperties
public Map<MAPIProperty,List<PropertyValue>> getProperties()
Description copied from interface:ChunkGroupWithPropertiesReturns all the Properties contained in the Chunk, along with their Values. Normally, each property will have one value, sometimes none, and rarely multiple (normally for Unknown etc). For fixed sized properties, the value can be fetched straight from thePropertyValue. For variable sized properties, you'll need to go via the chunk.- Specified by:
getPropertiesin interfaceChunkGroupWithProperties
-
getRawProperties
public Map<MAPIProperty,PropertyValue> getRawProperties()
-
getAll
public Map<MAPIProperty,List<Chunk>> getAll()
-
getChunks
public Chunk[] getChunks()
Description copied from interface:ChunkGroupReturns the chunks that make up the group. Should certainly contain all the interesting Chunks, but needn't always contain all of the Chunks.- Specified by:
getChunksin interfaceChunkGroup
-
getMessageClass
public StringChunk getMessageClass()
-
getTextBodyChunk
public StringChunk getTextBodyChunk()
-
getHtmlBodyChunkString
public StringChunk getHtmlBodyChunkString()
-
getHtmlBodyChunkBinary
public ByteChunk getHtmlBodyChunkBinary()
-
getRtfBodyChunk
public ByteChunk getRtfBodyChunk()
-
getSubjectChunk
public StringChunk getSubjectChunk()
-
getDisplayToChunk
public StringChunk getDisplayToChunk()
-
getDisplayFromChunk
public StringChunk getDisplayFromChunk()
-
getDisplayCCChunk
public StringChunk getDisplayCCChunk()
-
getDisplayBCCChunk
public StringChunk getDisplayBCCChunk()
-
getConversationTopic
public StringChunk getConversationTopic()
-
getSentByServerType
public StringChunk getSentByServerType()
-
getMessageHeaders
public StringChunk getMessageHeaders()
-
getSubmissionChunk
public MessageSubmissionChunk getSubmissionChunk()
-
getEmailFromChunk
public StringChunk getEmailFromChunk()
-
getMessageId
public StringChunk getMessageId()
-
getMessageProperties
public MessagePropertiesChunk getMessageProperties()
-
record
public void record(Chunk chunk)
Called by the parser whenever a chunk is found.- Specified by:
recordin interfaceChunkGroup
-
chunksComplete
public void chunksComplete()
Description copied from interface:ChunkGroupCalled by the parser when all chunks have been found.- Specified by:
chunksCompletein interfaceChunkGroup
-
-