Class PropertyFactory

java.lang.Object
org.docx4j.org.apache.poi.poifs.property.PropertyFactory

class PropertyFactory extends Object
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 Details

    • PropertyFactory

      private PropertyFactory()
  • Method Details

    • convertToProperties

      static List<Property> convertToProperties(ListManagedBlock[] blocks) throws IOException
      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

      static void convertToProperties(byte[] data, List<Property> properties) throws IOException
      Throws:
      IOException