public final class XmlMetaReader extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ModuleDetails |
read(java.io.InputStream moduleMetadataStream,
ModuleType moduleType)
Read the module details from the supplied input stream of the module's XML metadata file.
|
static java.util.List<ModuleDetails> |
readAllModulesIncludingThirdPartyIfAny(java.lang.String... thirdPartyPackages)
Utility to load all the metadata files present in the checkstyle JAR including third parties'
module metadata files.
|
public static java.util.List<ModuleDetails> readAllModulesIncludingThirdPartyIfAny(java.lang.String... thirdPartyPackages)
checkstylemeta-
to their file names.thirdPartyPackages - list of fully qualified third party package names(can be only a
hint, e.g. for SevNTU it can be com.github.sevntu / com.github)public static ModuleDetails read(java.io.InputStream moduleMetadataStream, ModuleType moduleType) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
moduleMetadataStream - input stream object of a module's metadata filemoduleType - type of modulejavax.xml.parsers.ParserConfigurationException - if a parser configuration exception occursjava.io.IOException - if a IO exception occursorg.xml.sax.SAXException - if a SAX exception occurs during parsing the XML fileCopyright © 2001-2020. All Rights Reserved.