private void processOutput(ContentHandler handler, Metadata metadata, String output)
            throws SAXException, IOException {
        XHTMLContentHandler xhtml = new XHTMLContentHandler(handler, metadata);
        try (Reader reader = new StringReader(output)) {
            xhtml.startDocument();
            xhtml.startElement("p");
            char[] buffer = new char[1024];
            for (int n = reader.read(buffer); n != -1; n = reader.read(buffer)) {
                xhtml.characters(buffer, 0, n);
            }
            xhtml.endElement("p");

        } finally {
            xhtml.endDocument();
        }

    }
Wraps execution of the <a href="http//gdal.org/">Geospatial Data Abstraction
Library (GDAL)</a> <code>gdalinfo</code> tool used to extract geospatial
information out of hundreds of geo file formats.
<p/>
The parser requires the installation of GDAL and for <code>gdalinfo</code> to
be located on the path.
<p/>
Basic information (Size, Coordinate System, Bounding Box, Driver, and
resource info) are extracted as metadata, and the remaining metadata patterns
are extracted and added.
<p/>
The output of the command is available from the provided
{@link ContentHandler} in the
{@link #parse(InputStream, ContentHandler, Metadata, ParseContext)} method.
tika-parsers/tika-parsers-extended/tika-parser-scientific-module/src/main/java/org/apache/tika/parser/gdal/GDALParser.java