@Override
    public void parse(InputStream stream, ContentHandler handler, Metadata metadata,
                      ParseContext context) throws IOException, SAXException, TikaException {

        WPInputStream wpStream = new WPInputStream(stream);
        WPPrefixArea prefixArea = WPPrefixAreaExtractor.extract(wpStream);

        ensureFileSupport(prefixArea, metadata);

        applyMetadata(prefixArea, metadata);

        extractDocumentArea(prefixArea, wpStream, new XHTMLContentHandler(handler, metadata));
    }
<p>Parser for Corel WordPerfect documents. Targets WP6 File Format
but appears to be compatible with more recent versions too.</p>

@author Pascal Essiembre
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/wordperfect/WordPerfectParser.java