Package org.apache.poi.hsmf.datatypes
Class DirectoryChunk
java.lang.Object
org.apache.poi.hsmf.datatypes.Chunk
org.apache.poi.hsmf.datatypes.DirectoryChunk
A Chunk that is just a placeholder in the MAPIMessage directory structure,
which contains children. This is most commonly used with nested MAPIMessages
-
Field Summary
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk
DEFAULT_NAME_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryChunk
(DirectoryNode dir, String namePrefix, int chunkId, Types.MAPIType type) -
Method Summary
Modifier and TypeMethodDescriptionTreats the directory as an embeded MAPIMessage (it normally is one), and returns a MAPIMessage object to process it with.Returns the directory entry for this chunk.void
readValue
(InputStream value) Reads the value of this chunk using an InputStreamvoid
writeValue
(OutputStream out) Writes the value of this chunk back out again.Methods inherited from class org.apache.poi.hsmf.datatypes.Chunk
getChunkId, getEntryName, getType
-
Constructor Details
-
DirectoryChunk
-
-
Method Details
-
getDirectory
Returns the directory entry for this chunk. You can then use standard POIFS methods to enumerate the entries in it. -
getAsEmbededMessage
Treats the directory as an embeded MAPIMessage (it normally is one), and returns a MAPIMessage object to process it with.- Throws:
IOException
-
readValue
Description copied from class:Chunk
Reads the value of this chunk using an InputStream -
writeValue
Description copied from class:Chunk
Writes the value of this chunk back out again.- Specified by:
writeValue
in classChunk
-