public final class ConfigurationLoader extends Object
Modifier and Type | Method and Description |
---|---|
static Configuration |
loadConfiguration(InputSource configSource,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Returns the module configurations from a specified input source.
|
static Configuration |
loadConfiguration(InputStream configStream,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Deprecated.
As this method does not provide a valid system ID,
preventing resolution of external entities, a
version using an InputSource
should be used instead |
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver)
Returns the module configurations in a specified file.
|
static Configuration |
loadConfiguration(String config,
PropertyResolver overridePropsResolver,
boolean omitIgnoredModules)
Returns the module configurations in a specified file.
|
public static Configuration loadConfiguration(String config, PropertyResolver overridePropsResolver) throws CheckstyleException
config
- location of config file, can be either a URL or a filenameoverridePropsResolver
- overriding propertiesCheckstyleException
- if an error occurspublic static Configuration loadConfiguration(String config, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
config
- location of config file, can be either a URL or a filenameoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurs@Deprecated public static Configuration loadConfiguration(InputStream configStream, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
version using an InputSource
should be used insteadconfigStream
- the input stream to the Checkstyle configurationoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occurspublic static Configuration loadConfiguration(InputSource configSource, PropertyResolver overridePropsResolver, boolean omitIgnoredModules) throws CheckstyleException
configSource
- the input stream to the Checkstyle configurationoverridePropsResolver
- overriding propertiesomitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwiseCheckstyleException
- if an error occursCopyright © 2001–2015. All rights reserved.