public abstract class AbstractLoader extends org.xml.sax.helpers.DefaultHandler
The error handling policy can be described as being austere, dead set, disciplinary, dour, draconian, exacting, firm, forbidding, grim, hard, hard- boiled, harsh, harsh, in line, iron-fisted, no-nonsense, oppressive, persnickety, picky, prudish, punctilious, puritanical, rigid, rigorous, scrupulous, set, severe, square, stern, stickler, straight, strait-laced, stringent, stuffy, stuffy, tough, unpermissive, unsparing and uptight.
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoader(Map<String,String> publicIdToResourceNameMap)
Creates a new instance.
|
protected |
AbstractLoader(String publicId,
String dtdResourceName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException ex) |
void |
fatalError(SAXParseException ex) |
void |
parseInputSource(InputSource inputSource)
Parses the specified input source.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
warning(SAXParseException ex) |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
protected AbstractLoader(String publicId, String dtdResourceName) throws SAXException, ParserConfigurationException
publicId
- the public ID for the DTD to resolvedtdResourceName
- the resource for the DTDSAXException
- if an error occursParserConfigurationException
- if an error occursprotected AbstractLoader(Map<String,String> publicIdToResourceNameMap) throws SAXException, ParserConfigurationException
publicIdToResourceNameMap
- maps public IDs to DTD resource namesSAXException
- if an error occursParserConfigurationException
- if an error occurspublic void parseInputSource(InputSource inputSource) throws IOException, SAXException
inputSource
- the input source to parse.IOException
- if an error occursSAXException
- in an error occurspublic InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
SAXException
IOException
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2001–2015. All rights reserved.