@Override
            public Set<MediaType> getSupportedTypes(ParseContext context) {
                return types;
            }
Decorates the given parser so that it always claims to support
parsing of the given media types.

@param parser the parser to be decorated
@param types  supported media types
@return the decorated parser
tika-core/src/main/java/org/apache/tika/parser/ParserDecorator.java