Package org.docx4j.openpackaging.io
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 Summary
Fields Modifier and Type Field Description protected static CustomXmlDataStoragecustomXmlDataStorageClassDeprecated.TODO.protected booleanloadExternalTargetsDeprecated. -
Constructor Summary
Constructors Constructor Description Load()Deprecated. -
Method Summary
Modifier and Type Method Description static CustomXmlDataStoragegetCustomXmlDataStorageClass()Deprecated.static PartgetRawPart(java.io.InputStream is, ContentTypeManager ctm, java.lang.String resolvedPartUri, Relationship rel)Deprecated.Get a Part (except a relationships part), but not its relationships part or related parts.voidloadExternalTargets(boolean loadExternalTargets)Deprecated.static voidregisterCustomXmlDataStorageParts(OpcPackage pkg)Deprecated.Find any /customXml/itemN.xml which have a props part which specifies a data store item ID.static voidsetCustomXmlDataStorageClass(CustomXmlDataStorage customXmlDataStorageClassVal)Deprecated.Set your preferred implementation of the CustomXmlDataStorage interface.
-
Field Details
-
loadExternalTargets
protected boolean loadExternalTargetsDeprecated. -
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
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
Deprecated.- Returns:
- the customXmlDataStorageClass
-
getRawPart
public static Part getRawPart(java.io.InputStream is, ContentTypeManager ctm, java.lang.String resolvedPartUri, Relationship rel) throws Docx4JExceptionDeprecated.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 packageresolvedPartUri- the part name- Returns:
- Throws:
java.net.URISyntaxExceptionInvalidFormatExceptionDocx4JException- See Also:
get a Part and all its related parts, and add all to a package, use getPart.
-
registerCustomXmlDataStorageParts
Deprecated.Find any /customXml/itemN.xml which have a props part which specifies a data store item ID. Register such parts.- Parameters:
p-
-