@NotThreadSafe public class HintParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAXP_SCHEMA_LANGUAGE
JAXP Schema Language.
|
static String |
JAXP_SCHEMA_SOURCE
JAXP Schema Source.
|
static String |
W3C_XML_SCHEMA
W3C XML Schema.
|
| Constructor and Description |
|---|
HintParser() |
| Modifier and Type | Method and Description |
|---|---|
List<HintRule> |
getHintRules()
Returns the hint rules.
|
List<VendorDuplicatingHintRule> |
getVendorDuplicatingHintRules()
Returns the vendor duplicating hint rules.
|
void |
parseHints(File file)
Parses the given XML file and returns a list of the hints contained.
|
void |
parseHints(InputStream inputStream)
Parses the given XML stream and returns a list of the hint rules
contained.
|
public static final String JAXP_SCHEMA_LANGUAGE
public static final String W3C_XML_SCHEMA
public static final String JAXP_SCHEMA_SOURCE
public List<VendorDuplicatingHintRule> getVendorDuplicatingHintRules()
public void parseHints(File file) throws HintParseException
file - an XML file containing hintsHintParseException - thrown if the XML file cannot be parsedpublic void parseHints(InputStream inputStream) throws HintParseException, SAXException
inputStream - an InputStream containing hint rulesHintParseException - thrown if the XML cannot be parsedSAXException - thrown if the XML cannot be parsedCopyright © 2012–2020 OWASP. All rights reserved.