Fix some Eclipse identified warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1589765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6050a68d5a
commit
d36d917467
@ -200,7 +200,6 @@ public class ExtractorFactory {
|
||||
* @deprecated Use {@link #createExtractor(DirectoryNode)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("unused")
|
||||
public static POITextExtractor createExtractor(DirectoryNode poifsDir, POIFSFileSystem fs)
|
||||
throws IOException, InvalidFormatException, OpenXML4JException, XmlException
|
||||
{
|
||||
|
@ -71,6 +71,7 @@ public class XSLFPowerPointExtractor extends POIXMLTextExtractor {
|
||||
new XSLFPowerPointExtractor(
|
||||
new XSLFSlideShow(args[0]));
|
||||
System.out.println(extractor.getText());
|
||||
extractor.close();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -17,14 +17,18 @@
|
||||
|
||||
package org.apache.poi.xssf.dev;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Enumeration;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipFile;
|
||||
|
||||
import org.apache.xmlbeans.XmlObject;
|
||||
import org.apache.xmlbeans.XmlOptions;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.zip.ZipFile;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.Enumeration;
|
||||
|
||||
/**
|
||||
* Utility class which dumps the contents of a *.xlsx file into file system.
|
||||
*
|
||||
@ -46,9 +50,9 @@ public final class XSSFDump {
|
||||
File root = new File(zipname.substring(0, sep));
|
||||
root.mkdir();
|
||||
|
||||
Enumeration en = zip.entries();
|
||||
Enumeration<? extends ZipEntry> en = zip.entries();
|
||||
while(en.hasMoreElements()){
|
||||
ZipEntry entry = (ZipEntry)en.nextElement();
|
||||
ZipEntry entry = en.nextElement();
|
||||
String name = entry.getName();
|
||||
int idx = name.lastIndexOf('/');
|
||||
if(idx != -1){
|
||||
|
@ -29,7 +29,6 @@ import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.openxml4j.opc.PackagePart;
|
||||
import org.apache.poi.openxml4j.opc.PackageRelationship;
|
||||
import org.apache.poi.xssf.usermodel.XSSFRelation;
|
||||
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst;
|
||||
import org.xml.sax.Attributes;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.xml.sax.SAXException;
|
||||
|
Loading…
Reference in New Issue
Block a user