- All Superinterfaces:
Parser
- All Known Implementing Classes:
CSSParser
Updates SAC's
Parser
interface.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
NSAC parser flags: theParser2.Flag.STARHACK
,Parser2.Flag.IEVALUES
,Parser2.Flag.IEPRIO
andParser2.Flag.IEPRIOCHAR
flags are supported.static interface
Interface giving access to namespace URI from the prefix. -
Method Summary
Modifier and TypeMethodDescriptionvoid
parseRule
(InputSource source, Parser2.NamespaceMap nsmap) Parse a CSS rule.void
setFlag
(Parser2.Flag flag) Set a parser flag.void
unsetFlag
(Parser2.Flag flag) Unset a parser flag.Methods inherited from interface org.w3c.css.sac.Parser
getParserVersion, parsePriority, parsePropertyValue, parseRule, parseSelectors, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, setConditionFactory, setDocumentHandler, setErrorHandler, setLocale, setSelectorFactory
-
Method Details
-
setFlag
Set a parser flag.- Parameters:
flag
- the flag.
-
unsetFlag
Unset a parser flag.- Parameters:
flag
- the flag.
-
parseRule
Parse a CSS rule.- Parameters:
source
- the rule's source.nsmap
- the namespace map.- Throws:
CSSException
- Any CSS exception, possibly wrapping another exception.IOException
- An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
-