diff options
Diffstat (limited to 'src/ooxml')
-rw-r--r-- | src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java | 4 | ||||
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java b/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java index 28af05b3e2..7657635e75 100644 --- a/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java +++ b/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java @@ -31,7 +31,7 @@ import org.apache.poi.POIXMLDocument; import org.apache.poi.POIXMLTextExtractor; import org.apache.poi.hdgf.extractor.VisioTextExtractor; import org.apache.poi.hslf.extractor.PowerPointExtractor; -import org.apache.poi.hsmf.extractor.HSMFTextExtactor; +import org.apache.poi.hsmf.extractor.OutlookTextExtactor; import org.apache.poi.hssf.extractor.ExcelExtractor; import org.apache.poi.hwpf.extractor.WordExtractor; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; @@ -142,7 +142,7 @@ public class ExtractorFactory { if(entry.getName().equals("__substg1.0_1000001E") || entry.getName().equals("__substg1.0_0047001E") || entry.getName().equals("__substg1.0_0037001E")) { - return new HSMFTextExtactor(poifsDir, fs); + return new OutlookTextExtactor(poifsDir, fs); } } throw new IllegalArgumentException("No supported documents found in the OLE2 stream"); diff --git a/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java b/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java index 8518b6eab1..f9b88794bd 100644 --- a/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java +++ b/src/ooxml/testcases/org/apache/poi/extractor/TestExtractorFactory.java @@ -25,7 +25,7 @@ import org.apache.poi.POITextExtractor; import org.apache.poi.POIDataSamples; import org.apache.poi.hdgf.extractor.VisioTextExtractor; import org.apache.poi.hslf.extractor.PowerPointExtractor; -import org.apache.poi.hsmf.extractor.HSMFTextExtactor; +import org.apache.poi.hsmf.extractor.OutlookTextExtactor; import org.apache.poi.hssf.extractor.ExcelExtractor; import org.apache.poi.hwpf.extractor.WordExtractor; import org.apache.poi.poifs.filesystem.POIFSFileSystem; @@ -169,7 +169,7 @@ public class TestExtractorFactory extends TestCase { // Outlook msg assertTrue( ExtractorFactory.createExtractor(msg) - instanceof HSMFTextExtactor + instanceof OutlookTextExtactor ); assertTrue( ExtractorFactory.createExtractor(msg).getText().length() > 50 @@ -248,7 +248,7 @@ public class TestExtractorFactory extends TestCase { // Outlook msg assertTrue( ExtractorFactory.createExtractor(new FileInputStream(msg)) - instanceof HSMFTextExtactor + instanceof OutlookTextExtactor ); assertTrue( ExtractorFactory.createExtractor(new FileInputStream(msg)).getText().length() > 50 @@ -303,7 +303,7 @@ public class TestExtractorFactory extends TestCase { // Outlook msg assertTrue( ExtractorFactory.createExtractor(new POIFSFileSystem(new FileInputStream(msg))) - instanceof HSMFTextExtactor + instanceof OutlookTextExtactor ); assertTrue( ExtractorFactory.createExtractor(new POIFSFileSystem(new FileInputStream(msg))).getText().length() > 50 |