Package org.docx4j.openpackaging.io
Class LoadFromZipNG
java.lang.Object
org.docx4j.openpackaging.io.Load
org.docx4j.openpackaging.io.LoadFromZipNG
@Deprecated public class LoadFromZipNG extends Load
Deprecated.
Create a Package object from a Zip file or input stream.
This class is a refactoring of LoadFromZipFile, which
couldn't read from an input stream
- Author:
- jharrop
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadFromZipNG.ByteArrayDeprecated. -
Field Summary
Fields inherited from class org.docx4j.openpackaging.io.Load
customXmlDataStorageClass, loadExternalTargets -
Constructor Summary
Constructors Constructor Description LoadFromZipNG()Deprecated. -
Method Summary
Modifier and Type Method Description OpcPackageget(java.io.File f)Deprecated.OpcPackageget(java.io.InputStream is)Deprecated.OpcPackageget(java.lang.String filepath)Deprecated.static PartgetBinaryPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, ContentTypeManager ctm, java.lang.String resolvedPartUri)Deprecated.static byte[]getBytesFromInputStream(java.io.InputStream is, long size)Deprecated.static PartgetRawPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, ContentTypeManager ctm, java.lang.String resolvedPartUri, Relationship rel)Deprecated.Get a Part (except a relationships part), but not its relationships part or related parts.RelationshipsPartgetRelationshipsPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, Part part)Deprecated.Get the Relationships Part (if there is one) for a given Part.static voidmain(java.lang.String[] args)Deprecated.Methods inherited from class org.docx4j.openpackaging.io.Load
getCustomXmlDataStorageClass, getRawPart, loadExternalTargets, registerCustomXmlDataStorageParts, setCustomXmlDataStorageClass
-
Constructor Details
-
LoadFromZipNG
public LoadFromZipNG()Deprecated.
-
-
Method Details
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
get
Deprecated.- Throws:
Docx4JException
-
getBytesFromInputStream
public static byte[] getBytesFromInputStream(java.io.InputStream is, long size) throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
get
Deprecated.- Throws:
Docx4JException
-
get
Deprecated.- Throws:
Docx4JException
-
getRelationshipsPart
public RelationshipsPart getRelationshipsPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, Part part) throws Docx4JException, InvalidFormatExceptionDeprecated.Get the Relationships Part (if there is one) for a given Part. Otherwise return null.- Parameters:
zf-part-- Returns:
- Throws:
InvalidFormatExceptionDocx4JException
-
getRawPart
public static Part getRawPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, 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. 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:
partByteArrays-ctm-resolvedPartUri-rel-- Returns:
- Throws:
Docx4JException- including if result is null- See Also:
get a Part and all its related parts, and add all to a package, use getPart.
-
getBinaryPart
public static Part getBinaryPart(java.util.HashMap<java.lang.String,LoadFromZipNG.ByteArray> partByteArrays, ContentTypeManager ctm, java.lang.String resolvedPartUri) throws Docx4JExceptionDeprecated.- Throws:
Docx4JException
-