org.apache.batik.css.parser
public class ExtendedParserWrapper extends Object implements ExtendedParser
Field Summary | |
---|---|
Parser | parser |
Constructor Summary | |
---|---|
ExtendedParserWrapper(Parser parser) |
Method Summary | |
---|---|
String | getParserVersion()
SAC: Implements org.w3c.css.sac.Parser#getParserVersion(). |
SACMediaList | parseMedia(String mediaText)
Implements parseMedia. |
boolean | parsePriority(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parsePriority(InputSource). |
boolean | parsePriority(String source)
Parse a CSS priority value (e.g. "!important").
|
LexicalUnit | parsePropertyValue(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parsePropertyValue(InputSource). |
LexicalUnit | parsePropertyValue(String source)
Parse a CSS property value.
|
void | parseRule(InputSource source)
SAC: Implements org.w3c.css.sac.Parser#parseRule(InputSource). |
void | parseRule(String source)
Parse a CSS rule.
|
SelectorList | parseSelectors(InputSource source)
SAC: Implements org.w3c.css.sac.Parser#parseSelectors(InputSource). |
SelectorList | parseSelectors(String source)
Parse a comma separated list of selectors.
|
void | parseStyleDeclaration(InputSource source)
SAC: Implements org.w3c.css.sac.Parser#parseStyleDeclaration(InputSource). |
void | parseStyleDeclaration(String source)
Parse a CSS style declaration (without '{' and '}').
|
void | parseStyleSheet(InputSource source)
SAC: Implements org.w3c.css.sac.Parser#parseStyleSheet(InputSource). |
void | parseStyleSheet(String uri)
Parse a CSS document from a URI.
|
void | setConditionFactory(ConditionFactory conditionFactory)
SAC: Implements org.w3c.css.sac.Parser#setConditionFactory(ConditionFactory). |
void | setDocumentHandler(DocumentHandler handler)
SAC: Implements org.w3c.css.sac.Parser#setDocumentHandler(DocumentHandler). |
void | setErrorHandler(ErrorHandler handler)
SAC: Implements org.w3c.css.sac.Parser#setErrorHandler(ErrorHandler). |
void | setLocale(Locale locale)
SAC: Implements org.w3c.css.sac.Parser#setLocale(Locale). |
void | setSelectorFactory(SelectorFactory selectorFactory)
SAC: Implements org.w3c.css.sac.Parser#setSelectorFactory(SelectorFactory). |
static ExtendedParser | wrap(Parser p)
This converts a standard @link org.w3c.css.sac.Parser into
an Extended Parser. |
Throws: CSSException Any CSS exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
Throws: CSSException Any CSS exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
Throws: CSSException Any CSS exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
Throws: CSSException Any CSS exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
Parameters: source The declaration.
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.
This method is a shortcut for the common case of reading a document from a URI. It is the exact equivalent of the following:
parse(new InputSource(uri));
The URI must be fully resolved by the application before it is passed to the parser.
Parameters: uri The URI.
Throws: CSSException Any CSS exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
See Also: parseStyleSheet
Parameters: p Parser to wrap.
Returns: p as an ExtendedParser.