/* 431: */ /* 432: */ protected void entityResolver(Document document) /* 433: */ throws SAXException /* 434: */ { /* 435:687 */ if (this.entityResolver != null) /* 436: */ { /* 437:688 */ DocumentType docType = document.getDocType(); /* 438:690 */ if (docType != null) /* 439: */ { /* 440:691 */ String publicID = docType.getPublicID(); /* 441:692 */ String systemID = docType.getSystemID(); /* 442:694 */ if ((publicID != null) || (systemID != null)) { /* 443: */ try /* 444: */ { /* 445:696 */ this.entityResolver.resolveEntity(publicID, systemID); /* 446: */ } /* 447: */ catch (IOException e) /* 448: */ { /* 449:698 */ throw new SAXException( "Could not resolve publicID: " + publicID + " systemID: " + systemID, e); /* 450: */ } /* 451: */ } /* 452: */ } /* 453: */ } /* 454: */ }
/* 406: */ /* 407: */ protected void documentLocator(Document document) /* 408: */ throws SAXException /* 409: */ { /* 410:661 */ LocatorImpl locator = new LocatorImpl(); /* 411: */ /* 412:663 */ String publicID = null; /* 413:664 */ String systemID = null; /* 414:665 */ DocumentType docType = document.getDocType(); /* 415:667 */ if (docType != null) /* 416: */ { /* 417:668 */ publicID = docType.getPublicID(); /* 418:669 */ systemID = docType.getSystemID(); /* 419: */ } /* 420:672 */ if (publicID != null) { /* 421:673 */ locator.setPublicId(publicID); /* 422: */ } /* 423:676 */ if (systemID != null) { /* 424:677 */ locator.setSystemId(systemID); /* 425: */ } /* 426:680 */ locator.setLineNumber(-1); /* 427:681 */ locator.setColumnNumber(-1); /* 428: */ /* 429:683 */ this.contentHandler.setDocumentLocator(locator); /* 430: */ }