Class PropertyFactory
java.lang.Object
org.docx4j.org.apache.poi.poifs.property.PropertyFactory
Factory for turning an array of RawDataBlock instances containing
Property data into an array of proper Property objects.
The array produced may be sparse, in that any portion of data that
should correspond to a Property, but which does not map to a proper
Property (i.e., a DirectoryProperty, DocumentProperty, or
RootProperty) will get mapped to a null Property in the array.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidconvertToProperties(byte[] data, List<Property> properties) convertToProperties(ListManagedBlock[] blocks) Convert raw data blocks to an array of Property's
-
Constructor Details
-
PropertyFactory
private PropertyFactory()
-
-
Method Details
-
convertToProperties
Convert raw data blocks to an array of Property's- Parameters:
blocks- to be converted- Returns:
- the converted List of Property objects. May contain nulls, but will not be null
- Throws:
IOException- if any of the blocks are empty
-
convertToProperties
- Throws:
IOException
-