public class AttachmentChunks extends java.lang.Object implements ChunkGroup
Modifier and Type | Class and Description |
---|---|
static class |
AttachmentChunks.AttachmentChunksSorter
Orders by the attachment number.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
AttachmentChunks(java.lang.String poifsName) |
Modifier and Type | Method and Description |
---|---|
void |
chunksComplete()
Used to flag that all the chunks of the attachment have now been located.
|
Chunk[] |
getAll() |
StringChunk |
getAttachContentId() |
ByteChunk |
getAttachData() |
StringChunk |
getAttachExtension() |
StringChunk |
getAttachFileName() |
StringChunk |
getAttachLongFileName() |
DirectoryChunk |
getAttachmentDirectory() |
StringChunk |
getAttachMimeTag() |
ByteChunk |
getAttachRenderingWMF() |
Chunk[] |
getChunks()
Returns the chunks that make up the group.
|
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
|
MAPIMessage |
getEmbeddedMessage()
Returns the embedded MAPI message, if the attachment is an embedded
message, or null otherwise
|
java.lang.String |
getPOIFSName() |
boolean |
isEmbeddedMessage()
Is this Attachment an embedded MAPI message?
|
void |
record(Chunk chunk)
Called by the parser whenever a chunk is found.
|
public static final java.lang.String PREFIX
public boolean isEmbeddedMessage()
public MAPIMessage getEmbeddedMessage() throws java.io.IOException
java.io.IOException
public byte[] getEmbeddedAttachmentObject()
public Chunk[] getAll()
public Chunk[] getChunks()
ChunkGroup
getChunks
in interface ChunkGroup
public java.lang.String getPOIFSName()
public ByteChunk getAttachData()
public StringChunk getAttachExtension()
public StringChunk getAttachFileName()
public StringChunk getAttachLongFileName()
public StringChunk getAttachMimeTag()
public DirectoryChunk getAttachmentDirectory()
public ByteChunk getAttachRenderingWMF()
public StringChunk getAttachContentId()
public void record(Chunk chunk)
record
in interface ChunkGroup
public void chunksComplete()
chunksComplete
in interface ChunkGroup
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.