public class XMLDefaultHandler extends DefaultHandler
This handler provides two features:
If you intent to provide an XML connector reader, you should consider to subclass this implementation.
Clients may subclass this class.
ModelReader
,
XMLUtils.newParser()
Constructor and Description |
---|
XMLDefaultHandler() |
Modifier and Type | Method and Description |
---|---|
String |
intern(String value)
Returns a canonical representation for the specified string object.
|
InputSource |
resolveEntity(String publicId,
String systemId)
This implementation ignores external entities.
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
SAXException
public final String intern(String value)
Note : the interned pool of strings is local to this handler. Once this handler is garbaged, the whole pool of strings is garbaged as well.
value
- the string to intern.String.intern()