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
  • Constructor Details

    • LoadFromZipNG

      public LoadFromZipNG()
      Deprecated.
  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.lang.Exception
      Deprecated.
      Throws:
      java.lang.Exception
    • get

      public OpcPackage get​(java.lang.String filepath) throws Docx4JException
      Deprecated.
      Throws:
      Docx4JException
    • getBytesFromInputStream

      public static byte[] getBytesFromInputStream​(java.io.InputStream is, long size) throws java.lang.Exception
      Deprecated.
      Throws:
      java.lang.Exception
    • get

      public OpcPackage get​(java.io.File f) throws Docx4JException
      Deprecated.
      Throws:
      Docx4JException
    • get

      public OpcPackage get​(java.io.InputStream is) throws Docx4JException
      Deprecated.
      Throws:
      Docx4JException
    • getRelationshipsPart

      public RelationshipsPart getRelationshipsPart​(java.util.HashMap<java.lang.String,​LoadFromZipNG.ByteArray> partByteArrays, Part part) throws Docx4JException, InvalidFormatException
      Deprecated.
      Get the Relationships Part (if there is one) for a given Part. Otherwise return null.
      Parameters:
      zf -
      part -
      Returns:
      Throws:
      InvalidFormatException
      Docx4JException
    • getRawPart

      public static Part getRawPart​(java.util.HashMap<java.lang.String,​LoadFromZipNG.ByteArray> partByteArrays, 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. 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 Docx4JException
      Deprecated.
      Throws:
      Docx4JException