- All Superinterfaces:
Parser
- All Known Implementing Classes:
CSSParser
Updates SAC's
Parser interface.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumNSAC parser flags: theParser2.Flag.STARHACK,Parser2.Flag.IEVALUES,Parser2.Flag.IEPRIOandParser2.Flag.IEPRIOCHARflags are supported.static interfaceInterface giving access to namespace URI from the prefix. -
Method Summary
Modifier and TypeMethodDescriptionvoidparseRule(InputSource source, Parser2.NamespaceMap nsmap) Parse a CSS rule.voidsetFlag(Parser2.Flag flag) Set a parser flag.voidunsetFlag(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.
-