/** Calls reset on each of the components owned by this component manager. **/ public void reset() throws XNIException { fNamespaceContext.reset(); fValidationManager.reset(); fEntityManager.reset(this); fErrorReporter.reset(this); fSchemaValidator.reset(this); // Mark configuration as fixed. fConfigUpdated = false; }
protected void reset() { super.reset(); fDTDScanner.reset(); fEntityManager.reset(); fErrorReporter.setDocumentLocator(fEntityManager.getEntityScanner()); }
/** Parses the DTD file specified by the given input source. */ public void parse(XMLInputSource source) throws XNIException, IOException { fScanner.reset(this); fEntityManager.reset(this); fErrorReporter.reset(this); fScanner.setInputSource(source); try { fScanner.scanDTDExternalSubset(true); } catch (EOFException e) { // ignore // NOTE: This is to work around a problem in the Xerces // DTD scanner implementation when used standalone. -Ac } } // parse(XMLInputSource)
/** * Parses the. * * @param source * the source * @throws XNIException * the xNI exception * @throws IOException * Signals that an I/O exception has occurred. {@inheritDoc} * @see org.apache.xerces.xni.parser.XMLParserConfiguration#parse(org.apache.xerces.xni.parser.XMLInputSource) */ @Override public void parse(final XMLInputSource source) throws XNIException, IOException { this.scanner.reset(this); this.entityManager.reset(this); this.errorReporter.reset(this); this.scanner.setInputSource(source); try { this.scanner.scanDTDExternalSubset(true); } catch (final EOFException e) { } }