@ThreadSafe public class SuppressionParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SUPPRESSION_SCHEMA_1_1
The suppression schema file location for v1.1.
|
static String |
SUPPRESSION_SCHEMA_1_2
The suppression schema file location for v 1.2.
|
static String |
SUPPRESSION_SCHEMA_1_3
The suppression schema file location for v 1.3.
|
| Constructor and Description |
|---|
SuppressionParser() |
| Modifier and Type | Method and Description |
|---|---|
List<SuppressionRule> |
parseSuppressionRules(File file)
Parses the given XML file and returns a list of the suppression rules
contained.
|
List<SuppressionRule> |
parseSuppressionRules(InputStream inputStream)
Parses the given XML stream and returns a list of the suppression rules
contained.
|
public static final String SUPPRESSION_SCHEMA_1_3
public static final String SUPPRESSION_SCHEMA_1_2
public static final String SUPPRESSION_SCHEMA_1_1
public List<SuppressionRule> parseSuppressionRules(File file) throws SuppressionParseException
file - an XML file containing suppression rulesSuppressionParseException - thrown if the XML file cannot be parsedpublic List<SuppressionRule> parseSuppressionRules(InputStream inputStream) throws SuppressionParseException, SAXException
inputStream - an InputStream containing suppression rulesSuppressionParseException - thrown if the XML cannot be parsedSAXException - thrown if the XML cannot be parsedCopyright © 2012–2020 OWASP. All rights reserved.