Package org.docx4j.openpackaging.io
Class Load
java.lang.Object
org.docx4j.openpackaging.io.Load
- Direct Known Subclasses:
Load3,LoadFromZipNG
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static CustomXmlDataStorageDeprecated.TODO.protected booleanDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomXmlDataStorageDeprecated.static PartgetRawPart(InputStream is, ContentTypeManager ctm, 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 voidDeprecated.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(InputStream is, ContentTypeManager ctm, 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 packageresolvedPartUri- the part name- Returns:
- Throws:
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-
-