mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Tika and POI upgrade for ALF-13106
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34883 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,7 +45,7 @@ import org.alfresco.service.namespace.QName;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.tika.config.TikaConfig;
|
||||
import org.apache.tika.detect.ContainerAwareDetector;
|
||||
import org.apache.tika.detect.DefaultDetector;
|
||||
import org.apache.tika.detect.Detector;
|
||||
import org.apache.tika.exception.TikaException;
|
||||
import org.apache.tika.extractor.EmbeddedResourceHandler;
|
||||
@@ -113,9 +113,7 @@ public class TikaPoweredContainerExtractor
|
||||
this.config = tikaConfig;
|
||||
|
||||
// Setup the detector and parser
|
||||
detector = new ContainerAwareDetector(
|
||||
config.getMimeRepository()
|
||||
);
|
||||
detector = new DefaultDetector(config.getMimeRepository());
|
||||
parser = new AutoDetectParser(detector);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user