com.puppycrawl.tools.checkstyle
Class AbstractLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.puppycrawl.tools.checkstyle.AbstractLoader
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Direct Known Subclasses:
- PackageNamesLoader, SuppressionsLoader
- public abstract class AbstractLoader
- extends DefaultHandler
Contains the common implementation of a loader, for loading a configuration
from an XML file.
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.
- Author:
- Oliver Burn
Constructor Summary |
protected |
AbstractLoader(java.lang.String aPublicId,
java.lang.String aDtdResourceName)
Creates a new instance. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoader
protected AbstractLoader(java.lang.String aPublicId,
java.lang.String aDtdResourceName)
throws SAXException,
ParserConfigurationException
- Creates a new instance.
- Parameters:
aPublicId
- the public ID for the DTD to resolveaDtdResourceName
- the resource for the DTD
- Throws:
SAXException
- if an error occurs
ParserConfigurationException
- if an error occurs
parseInputSource
protected void parseInputSource(InputSource aInputSource)
throws java.io.IOException,
SAXException
- Parses the specified input source.
- Parameters:
aInputSource
- the input source to parse.
- Throws:
java.io.IOException
- if an error occurs
SAXException
- in an error occurs
resolveEntity
public InputSource resolveEntity(java.lang.String aPublicId,
java.lang.String aSystemId)
throws SAXException
-
- Throws:
SAXException
warning
public void warning(SAXParseException aEx)
throws SAXException
- Throws:
SAXException
- See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)
error
public void error(SAXParseException aEx)
throws SAXException
- Throws:
SAXException
- See Also:
ErrorHandler.error(org.xml.sax.SAXParseException)
fatalError
public void fatalError(SAXParseException aEx)
throws SAXException
- Throws:
SAXException
- See Also:
ErrorHandler.fatalError(org.xml.sax.SAXParseException)