poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1748494 - in /poi/trunk/src/ooxml/java/org/apache/poi: openxml4j/opc/Package.java openxml4j/opc/ZipPackage.java xssf/extractor/XSSFExcelExtractor.java
Date Wed, 15 Jun 2016 04:22:50 GMT
Author: onealj
Date: Wed Jun 15 04:22:49 2016
New Revision: 1748494

URL: http://svn.apache.org/viewvc?rev=1748494&view=rev
Log:
bug 59170: remove deprecated o.a.p.openxml4j.opc.Package

Removed:
    poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/Package.java
Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java?rev=1748494&r1=1748493&r2=1748494&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java Wed Jun 15 04:22:49
2016
@@ -51,8 +51,7 @@ import org.apache.poi.util.TempFile;
 /**
  * Physical zip package.
  */
-@SuppressWarnings("deprecation")
-public final class ZipPackage extends Package {
+public final class ZipPackage extends OPCPackage {
     private static POILogger logger = POILogFactory.getLogger(ZipPackage.class);
 
     /**

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java?rev=1748494&r1=1748493&r2=1748494&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java Wed Jun
15 04:22:49 2016
@@ -78,8 +78,8 @@ public class XSSFExcelExtractor extends
             System.err.println("  XSSFExcelExtractor <filename.xlsx>");
             System.exit(1);
         }
-        POIXMLTextExtractor extractor =
-                new XSSFExcelExtractor(args[0]);
+        OPCPackage pkg = OPCPackage.create(args[0]);
+        POIXMLTextExtractor extractor = new XSSFExcelExtractor(pkg);
         try {
             System.out.println(extractor.getText());
         } finally {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message