public void read(InputStream stream) throws IOException, MimeTypeException {
        SAXParser parser = null;
        try {

            parser = acquireSAXParser();
            parser.parse(stream, this);
        } catch (TikaException e) {
            throw new MimeTypeException("Unable to create an XML parser", e);
        } catch (SAXException e) {
            throw new MimeTypeException("Invalid type configuration", e);
        } finally {
            if (parser != null) {
                releaseParser(parser);
            }
        }
    }
Set the pool size for cached XML parsers.

@param poolSize
tika-core/src/main/java/org/apache/tika/mime/MimeTypesReader.java