| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class DefaultHandler2 extends DefaultHandler implements LexicalHandler, DeclHandler, EntityResolver2
This class extends the SAX2 base handler class to support the SAX2 {@link LexicalHandler}, {@link DeclHandler}, and {@link EntityResolver2} extensions. Except for overriding the original SAX1 {@link DefaultHandler#resolveEntity resolveEntity()} method the added handler methods just return. Subclassers may override everything on a method-by-method basis.
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY.
Note: this class might yet learn that the ContentHandler.setDocumentLocator() call might be passed a {@link Locator2} object, and that the ContentHandler.startElement() call might be passed a {@link Attributes2} object.
Constructor Summary | |
---|---|
Constructs a handler which ignores all parsing events. |
Method Summary | |
---|---|
void |
|
void |
comment(char[] ch, int start, int length) |
void |
elementDecl(String name, String model) |
void |
endCDATA() |
void |
endDTD() |
void |
|
void |
externalEntityDecl(String name, String publicId, String systemId) |
InputSource |
getExternalSubset(String name, String baseURI) Tells the parser that if no external subset has been declared in the document text, none should be used. |
void |
internalEntityDecl(String name, String value) |
InputSource |
resolveEntity(String publicId, String systemId) Invokes org.xml.sax.ext.EntityResolver2.resolveEntity with null entity name and base URI. |
InputSource |
resolveEntity(String name, String publicId, String baseURI, String systemId) Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI. |
void |
|
void |
|
void |
startEntity(String name) |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHandler2()
Method Detail |
---|
public void attributeDecl(String eName, String aName, String type, String mode, String value) throws SAXException
eName
aName
type
mode
value
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
ch
start
length
SAXException
public void elementDecl(String name, String model) throws SAXException
name
model
SAXException
public void endCDATA() throws SAXException
SAXException
public void endDTD() throws SAXException
SAXException
public void endEntity(String name) throws SAXException
name
SAXException
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
name
publicId
systemId
SAXException
public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
name
baseURI
SAXException
IOException
public void internalEntityDecl(String name, String value) throws SAXException
name
value
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in class DefaultHandler
publicId
systemId
SAXException
IOException
public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException
name
publicId
baseURI
systemId
SAXException
IOException
public void startCDATA() throws SAXException
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
name
publicId
systemId
SAXException
public void startEntity(String name) throws SAXException
name
SAXException
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |