|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.puppycrawl.tools.checkstyle.api.AbstractLoader
public abstract class AbstractLoader
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.
| Constructor Summary | |
|---|---|
protected |
AbstractLoader(Map<String,String> aPublicIdToResourceNameMap)
Creates a new instance. |
protected |
AbstractLoader(String aPublicId,
String aDtdResourceName)
Creates a new instance. |
| Method Summary | |
|---|---|
void |
error(SAXParseException aEx)
|
void |
fatalError(SAXParseException aEx)
|
void |
parseInputSource(InputSource aInputSource)
Parses the specified input source. |
InputSource |
resolveEntity(String aPublicId,
String aSystemId)
|
void |
warning(SAXParseException aEx)
|
| 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 |
| Constructor Detail |
|---|
protected AbstractLoader(String aPublicId,
String aDtdResourceName)
throws SAXException,
ParserConfigurationException
aPublicId - the public ID for the DTD to resolveaDtdResourceName - the resource for the DTD
SAXException - if an error occurs
ParserConfigurationException - if an error occurs
protected AbstractLoader(Map<String,String> aPublicIdToResourceNameMap)
throws SAXException,
ParserConfigurationException
aPublicIdToResourceNameMap - maps public IDs to DTD resource names
SAXException - if an error occurs
ParserConfigurationException - if an error occurs| Method Detail |
|---|
public void parseInputSource(InputSource aInputSource)
throws IOException,
SAXException
aInputSource - the input source to parse.
IOException - if an error occurs
SAXException - in an error occurs
public InputSource resolveEntity(String aPublicId,
String aSystemId)
throws SAXException
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerSAXException
public void warning(SAXParseException aEx)
throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXException
public void error(SAXParseException aEx)
throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXException
public void fatalError(SAXParseException aEx)
throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXException
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||