public class XmlLoader 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 and Type | Class and Description |
|---|---|
static class |
XmlLoader.LoadExternalDtdFeatureProvider
Used for setting specific for secure java installations features to SAXParserFactory.
|
| Modifier and Type | Field and Description |
|---|---|
private org.xml.sax.XMLReader |
parser
Parser to read XML files.
|
private java.util.Map<java.lang.String,java.lang.String> |
publicIdToResourceNameMap
Maps public id to resolve to resource name for the DTD.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XmlLoader(java.util.Map<java.lang.String,java.lang.String> publicIdToResourceNameMap)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException exception) |
void |
parseInputSource(org.xml.sax.InputSource inputSource)
Parses the specified input source.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningprivate final java.util.Map<java.lang.String,java.lang.String> publicIdToResourceNameMap
private final org.xml.sax.XMLReader parser
protected XmlLoader(java.util.Map<java.lang.String,java.lang.String> publicIdToResourceNameMap) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
publicIdToResourceNameMap - maps public IDs to DTD resource namesorg.xml.sax.SAXException - if an error occursjavax.xml.parsers.ParserConfigurationException - if an error occurspublic void parseInputSource(org.xml.sax.InputSource inputSource) throws java.io.IOException, org.xml.sax.SAXException
inputSource - the input source to parse.java.io.IOException - if an error occursorg.xml.sax.SAXException - in an error occurspublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity in interface org.xml.sax.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionCopyright © 2001-2022. All Rights Reserved.