Class Load

java.lang.Object
org.docx4j.openpackaging.io.Load
Direct Known Subclasses:
Load3, LoadFromZipNG

@Deprecated
public class Load
extends java.lang.Object
Deprecated.
  • Field Details

    • loadExternalTargets

      protected boolean loadExternalTargets
      Deprecated.
    • customXmlDataStorageClass

      protected static CustomXmlDataStorage customXmlDataStorageClass
      Deprecated.
      TODO. I'd prefer this not to be static, but it needs to be, given that getRawPart is. Maybe its not such a big deal, because its reasonable to assume that most people using docx4j will standardise on a single implementation of CustomXmlDataStorage?
  • Constructor Details

    • Load

      public Load()
      Deprecated.
  • Method Details

    • loadExternalTargets

      public void loadExternalTargets​(boolean loadExternalTargets)
      Deprecated.
    • setCustomXmlDataStorageClass

      public static void setCustomXmlDataStorageClass​(CustomXmlDataStorage customXmlDataStorageClassVal)
      Deprecated.
      Set your preferred implementation of the CustomXmlDataStorage interface. Its factory method will be used to create new instances.
      Parameters:
      customXmlDataStorageClass - the customXmlDataStorageClass to set
    • getCustomXmlDataStorageClass

      public static CustomXmlDataStorage getCustomXmlDataStorageClass()
      Deprecated.
      Returns:
      the customXmlDataStorageClass
    • getRawPart

      public static Part getRawPart​(java.io.InputStream is, ContentTypeManager ctm, java.lang.String resolvedPartUri, Relationship rel) throws Docx4JException
      Deprecated.
      Get a Part (except a relationships part), but not its relationships part or related parts. Useful if you need quick access to just this part, or if you wish to add a foreign part (ie a part from some other package). This can be called directly from outside the library, in which case the Part will not be owned by a Package until the calling code makes it so.
      Parameters:
      is -
      ctm - the ContentTypeManager associated with the foreign package
      resolvedPartUri - the part name
      Returns:
      Throws:
      java.net.URISyntaxException
      InvalidFormatException
      Docx4JException
      See Also:
      get a Part and all its related parts, and add all to a package, use getPart.
    • registerCustomXmlDataStorageParts

      public static void registerCustomXmlDataStorageParts​(OpcPackage pkg)
      Deprecated.
      Find any /customXml/itemN.xml which have a props part which specifies a data store item ID. Register such parts.
      Parameters:
      p -