/** * Invokes * {@link EntityResolver2#resolveEntity EntityResolver2.resolveEntity()} * with null entity name and base URI. * You only need to override that method to use this class. * * @param publicId The public identifier of the external entity being * referenced (normalized as required by the XML specification), or * null if none was supplied. * @param systemId The system identifier of the external entity * being referenced; either a relative or absolute URI. * This is never null when invoked by a SAX2 parser; only declared * entities, and any external subset, are resolved by such parsers. * * @return An InputSource object describing the new input source. * * @exception SAXException Any SAX exception, possibly wrapping * another exception. * @exception IOException Probably indicating a failure to create * a new InputStream or Reader, or an illegal URL. */ public InputSource resolveEntity (String publicId, String systemId) throws SAXException, IOException { return resolveEntity (null, publicId, null, systemId); } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { namespaceDeclarationStack.pushNamespaces(qName, uri, atts); baseHandler.startElement(uri, localName, qName, atts); }
public void comment(char[] ch, int start, int length) throws SAXException { baseHandler.comment(ch, start, length); } }
public void endDocument() throws SAXException { baseHandler.endDocument(); }
@Override public void endDTD() throws SAXException { super.endDTD(); this.dtdMode = false; }
public void characters(char[] ch, int start, int length) throws SAXException { baseHandler.characters(ch, start, length); }
public void endCDATA() throws SAXException { baseHandler.endCDATA(); }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { namespaceDeclarationStack.pushNamespaces(qName, uri, atts); baseHandler.startElement(uri, localName, qName, atts); }
public void comment(char[] ch, int start, int length) throws SAXException { baseHandler.comment(ch, start, length); } }
public void endDocument() throws SAXException { baseHandler.endDocument(); }
public void endDTD() throws SAXException { baseHandler.endDTD(); }
public void characters(char[] ch, int start, int length) throws SAXException { baseHandler.characters(ch, start, length); }
public void endCDATA() throws SAXException { baseHandler.endCDATA(); }
@Override public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException { if (entityResolver != null) { return entityResolver.resolveEntity(name, publicId, baseURI, systemId); } return super.resolveEntity(name, publicId, baseURI, systemId); }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { namespaceDeclarationStack.pushNamespaces(qName, uri, atts); baseHandler.startElement(uri, localName, qName, atts); }
public void comment(char[] ch, int start, int length) throws SAXException { baseHandler.comment(ch, start, length); } }
public void endDocument() throws SAXException { baseHandler.endDocument(); }
public void endDTD() throws SAXException { baseHandler.endDTD(); }
public void characters(char[] ch, int start, int length) throws SAXException { baseHandler.characters(ch, start, length); }
public void endCDATA() throws SAXException { baseHandler.endCDATA(); }