public final class PackageNamesLoader extends XmlLoader
XmlLoader.FeaturesForVerySecureJavaInstallations
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String localName,
String qName) |
static Set<String> |
getPackageNames(ClassLoader classLoader)
Returns the set of package names, compiled from all
checkstyle_packages.xml files found on the given class loaders
classpath.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
error, fatalError, parseInputSource, resolveEntity
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void startElement(String uri, String localName, String qName, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public static Set<String> getPackageNames(ClassLoader classLoader) throws CheckstyleException
classLoader
- the class loader for loading the
checkstyle_packages.xml files.CheckstyleException
- if an error occurs.Copyright © 2001–2018. All rights reserved.