Ignore:
Timestamp:
09/20/11 12:34:05 (8 months ago)
Author:
jharrop
Message:

Albert Aymerich's patch to load content (docx and xml) from inputstreams.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/packages/WordprocessingMLPackage.java

    r1604 r1667  
    2525import java.io.FileNotFoundException; 
    2626import java.io.FileOutputStream; 
     27import java.io.InputStream; 
    2728import java.util.HashMap; 
    2829import java.util.Map; 
     
    173174 
    174175        /** 
     176         * Convenience method to create a WordprocessingMLPackage 
     177         * from an existing stream(.docx zip or .xml Flat OPC). 
     178     * 
     179         * @param docxFile 
     180         *            The docx file  
     181         */      
     182        public static WordprocessingMLPackage load(InputStream is) throws Docx4JException { 
     183                 
     184                return (WordprocessingMLPackage)OpcPackage.load(is); 
     185        } 
     186         
     187        /** 
    175188         * Convenience method to save a WordprocessingMLPackage 
    176189         * to a File. 
Note: See TracChangeset for help on using the changeset viewer.