protected int skipUntilChar(WPInputStream in, int targetChar) throws IOException {
        int count = 0;
        int c;
        while ((c = in.read()) != -1) {
            count++;
            if (c == targetChar) {
                return count;
            }
        }
        return count;
    }
This assumes that the &lt;p&gt; was started before you get here.
And the user is required to close the &lt;p&gt; at the end of the document.
<p>
These are currently handled by {@link #extract(WPInputStream, XHTMLContentHandler)}.

@param xhtml
@throws SAXException
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/wordperfect/WPDocumentAreaExtractor.java