public class XmlLoader extends 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 | Constructor and Description |
|---|---|
protected |
XmlLoader(Map<String,String> publicIdToResourceNameMap)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception) |
void |
parseInputSource(InputSource inputSource)
Parses the specified input source.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningprotected XmlLoader(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 EntityResolverresolveEntity in class DefaultHandlerSAXExceptionIOExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionCopyright © 2001–2020. All rights reserved.