throws IOException, SAXException, TikaException {
Reader reader = Utils.getUTF8Reader(stream, metadata);
metadata.set(Metadata.CONTENT_TYPE, "text/plain");
XHTMLContentHandler xhtml = new XHTMLContentHandler(handler, metadata);
xhtml.startDocument();
xhtml.startElement("p");
char[] buffer = new char[4096];
for (int n = reader.read(buffer); n != -1; n = reader.read(buffer)) {
xhtml.characters(buffer, 0, n);
}