- fix for xlsx and pptx parsing

- less exception logging for swf parser

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6413 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent afae2a0bee
commit c2272785c7

@ -51,7 +51,6 @@ public class pptParser extends AbstractParser implements Idiom {
public static final Set<String> SUPPORTED_EXTENSIONS = new HashSet<String>();
static {
SUPPORTED_EXTENSIONS.add("ppt");
SUPPORTED_EXTENSIONS.add("pptx");
SUPPORTED_EXTENSIONS.add("pps");
SUPPORTED_MIME_TYPES.add("application/mspowerpoint");
SUPPORTED_MIME_TYPES.add("application/powerpoint");

@ -84,7 +84,7 @@ public class swfParser extends AbstractParser implements Idiom {
// seen in log
return null;
} catch (IOException e) {
e.printStackTrace();
// seems to happen quite often
return null;
} catch (Exception e) {
// we have seen a lot of OOM errors in the parser...

@ -64,7 +64,6 @@ public class xlsParser extends AbstractParser implements Idiom, HSSFListener {
static {
SUPPORTED_EXTENSIONS.add("xls");
SUPPORTED_EXTENSIONS.add("xla");
SUPPORTED_EXTENSIONS.add("xlsx");
SUPPORTED_MIME_TYPES.add("application/msexcel");
SUPPORTED_MIME_TYPES.add("application/excel");
SUPPORTED_MIME_TYPES.add("application/vnd.ms-excel");

Loading…
Cancel
Save