} else if (SUMMARY_INFORMATION.equals(name)
|| DOCUMENT_SUMMARY_INFORMATION.equals(name)) {
parse((DocumentEntry) entry, metadata);
} else if ("WordDocument".equals(name)) {
setType(metadata, "application/msword");
WordExtractor extractor = new WordExtractor(filesystem);
for (String paragraph : extractor.getParagraphText()) {
xhtml.element("p", paragraph);
}
} else if ("PowerPoint Document".equals(name)) {
setType(metadata, "application/vnd.ms-powerpoint");
PowerPointExtractor extractor =
new PowerPointExtractor(filesystem);
xhtml.element("p", extractor.getText(true, true));
} else if ("Workbook".equals(name)) {
setType(metadata, "application/vnd.ms-excel");
new ExcelExtractor().parse(filesystem, xhtml);
} else if ("VisioDocument".equals(name)) {
setType(metadata, "application/vnd.visio");
VisioTextExtractor extractor =
new VisioTextExtractor(filesystem);
for (String text : extractor.getAllText()) {
xhtml.element("p", text);
}
} else if (name.startsWith("__substg1.0_")) {
setType(metadata, "application/vnd.ms-outlook");
new OutlookExtractor(filesystem).parse(xhtml, metadata);