try {
context.getSAXParser().parse(
stream, new TeeContentHandler(
tagged, new MetaHandler(metadata)));
} catch (SAXException e) {
tagged.throwIfCauseOf(e);
throw new TikaException(
"Invalid network parser output", e);
} catch (IOException e) {
throw new TikaException(
"Unable to read network parser output", e);