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);
}
Aggregations