private void checkForException() {
		if (exception != null) {
			throw new RuntimeException(exception);
		}
		if (disposed) {
			throw new RuntimeException("Xml Parser was disposed!");
		}
	}
Constructs a new parser using the specified input stream.
<p>
Note: Only use this method if you know that the XML in the given stream
contains its own internal validation (an internal dtd specification). For
XML files that use an external dtd file you should call
{@link #XmlParser(File, ErrorHandler, boolean)}.

@param input the XML input stream
@param inputName the name of the input stream
@param errHandler the XML error handler
@param validate true if the parse should validate against the DTD
@throws SAXException if an XML parse error occurs
@throws IOException if an i/o error occurs
Ghidra/Framework/Generic/src/main/java/ghidra/xml/ThreadedXmlPullParserImpl.java