Package ch.astorm.jotlmsg.io
Class PropertiesChunk
java.lang.Object
ch.astorm.jotlmsg.io.PropertiesChunk
- Direct Known Subclasses:
MessagePropertiesChunk,StoragePropertiesChunk
Handles the writing of
MAPIProperty instances.
This file is based on PropertiesChunk.
This class provides a basic implementation to write fixed-length and variable-length
properties to a POIFSFileSystem, but it doesn't handle the other data
such as list properties (since point 2.4.2.2) or GUID/Entry/String streams (point 2.2.3).
Those would be needed to make a more advanced integration with Microsoft Outlook and take
advantage of other features, like appointments, calendars, ...
- Author:
- Cedric Tabin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFlag to set for readable properties.static final intFlag to set for writable properties.static final StringStandard prefix of nodes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.hsmf.datatypes.PropertyValuegetProperty(org.apache.poi.hsmf.datatypes.MAPIProperty property) voidsetProperty(org.apache.poi.hsmf.datatypes.PropertyValue value) Defines a property.voidwriteTo(org.apache.poi.poifs.filesystem.DirectoryEntry directory) Writes this chunk in the specifiedDirectoryEntry.
-
Field Details
-
PREFIX
Standard prefix of nodes. Defined by the MS specification.- See Also:
-
FLAG_READABLE
public static final int FLAG_READABLEFlag to set for readable properties. Defined by the MS specification.- See Also:
-
FLAG_WRITEABLE
public static final int FLAG_WRITEABLEFlag to set for writable properties. Defined by the MS specification.- See Also:
-
-
Constructor Details
-
PropertiesChunk
public PropertiesChunk()
-
-
Method Details
-
setProperty
public void setProperty(org.apache.poi.hsmf.datatypes.PropertyValue value) Defines a property. Multi-valued properties are not yet supported. -
getProperty
public org.apache.poi.hsmf.datatypes.PropertyValue getProperty(org.apache.poi.hsmf.datatypes.MAPIProperty property) -
writeTo
Writes this chunk in the specifiedDirectoryEntry.- Parameters:
directory- The directory.- Throws:
IOException- If an I/O error occurs.
-