Package org.apache.poi.hsmf.datatypes
Class AttachmentChunks
java.lang.Object
org.apache.poi.hsmf.datatypes.AttachmentChunks
- All Implemented Interfaces:
ChunkGroup
Collection of convenience chunks for standard parts of the MSG file
attachment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOrders by the attachment number. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUsed to flag that all the chunks of the attachment have now been located.Chunk[]getAll()Chunk[]Returns the chunks that make up the group.byte[]Returns the embedded object, if the attachment is an object based embedding (image, document etc), or null if it's an embedded messageReturns the embedded MAPI message, if the attachment is an embedded message, or null otherwisebooleanIs this Attachment an embedded MAPI message?voidCalled by the parser whenever a chunk is found.
-
Field Details
-
PREFIX
- See Also:
-
attachRenderingWMF
This is in WMF Format. You'll probably want to pass it to Apache Batik to turn it into a SVG that you can then display.
-
-
Constructor Details
-
AttachmentChunks
-
-
Method Details
-
isEmbeddedMessage
public boolean isEmbeddedMessage()Is this Attachment an embedded MAPI message? -
getEmbeddedMessage
Returns the embedded MAPI message, if the attachment is an embedded message, or null otherwise- Throws:
IOException
-
getEmbeddedAttachmentObject
public byte[] getEmbeddedAttachmentObject()Returns the embedded object, if the attachment is an object based embedding (image, document etc), or null if it's an embedded message -
getAll
-
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
-
getPOIFSName
-
getAttachData
- Returns:
- the ATTACH_DATA chunk
-
getAttachExtension
- Returns:
- the attachment extension
-
getAttachFileName
- Returns:
- the attachment (short) filename
-
getAttachLongFileName
- Returns:
- the attachment (long) filename
-
getAttachMimeTag
- Returns:
- the attachment mimetag
-
getAttachmentDirectory
- Returns:
- the attachment directory
-
getAttachRenderingWMF
- Returns:
- the attachment preview bytes
-
getAttachContentId
- Returns:
- the attachment content ID
-
record
Called by the parser whenever a chunk is found.- Specified by:
recordin interfaceChunkGroup
-
chunksComplete
public void chunksComplete()Used to flag that all the chunks of the attachment have now been located.- Specified by:
chunksCompletein interfaceChunkGroup
-