Search in sources :

Example 1 with OpenDocumentParser

use of org.apache.tika.parser.odf.OpenDocumentParser in project tika by apache.

the class TikaToXMP method initialize.

/**
     * Initializes the map with supported converters.
     */
private static void initialize() {
    // No particular parsing context is needed
    ParseContext parseContext = new ParseContext();
    // MS Office Binary File Format
    addConverter(new OfficeParser().getSupportedTypes(parseContext), MSOfficeBinaryConverter.class);
    // Rich Text Format
    addConverter(new RTFParser().getSupportedTypes(parseContext), RTFConverter.class);
    // MS Open XML Format
    addConverter(new OOXMLParser().getSupportedTypes(parseContext), MSOfficeXMLConverter.class);
    // Open document format
    addConverter(new OpenDocumentParser().getSupportedTypes(parseContext), OpenDocumentConverter.class);
}
Also used : RTFParser(org.apache.tika.parser.rtf.RTFParser) OOXMLParser(org.apache.tika.parser.microsoft.ooxml.OOXMLParser) OpenDocumentParser(org.apache.tika.parser.odf.OpenDocumentParser) OfficeParser(org.apache.tika.parser.microsoft.OfficeParser) ParseContext(org.apache.tika.parser.ParseContext)

Aggregations

ParseContext (org.apache.tika.parser.ParseContext)1 OfficeParser (org.apache.tika.parser.microsoft.OfficeParser)1 OOXMLParser (org.apache.tika.parser.microsoft.ooxml.OOXMLParser)1 OpenDocumentParser (org.apache.tika.parser.odf.OpenDocumentParser)1 RTFParser (org.apache.tika.parser.rtf.RTFParser)1