public void setParsers(Map<MediaType, Parser> parsers) {
        this.parsers = new ArrayList<>(parsers.size());
        for (Map.Entry<MediaType, Parser> entry : parsers.entrySet()) {
            this.parsers.add(ParserDecorator
                    .withTypes(entry.getValue(), Collections.singleton(entry.getKey())));
        }
    }
Sets the component parsers.

@param parsers component parsers, keyed by media type
tika-core/src/main/java/org/apache/tika/parser/CompositeParser.java