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