public class ExtendedParserWrapper extends java.lang.Object implements ExtendedParser
ExtendedParser
interface by wrapping a standard org.w3c.css.sac.Parser.| Constructor and Description |
|---|
ExtendedParserWrapper(Parser parser) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getParserVersion()
SAC: Implements
org.w3c.css.sac.Parser#getParserVersion(). |
SACMediaList |
parseMedia(java.lang.String mediaText)
Implements
ExtendedParser.parseMedia(String). |
boolean |
parsePriority(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parsePriority(InputSource). |
LexicalUnit |
parsePropertyValue(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parsePropertyValue(InputSource). |
LexicalUnit |
parsePropertyValue(java.lang.String source)
Parse a CSS property value.
|
void |
parseRule(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parseRule(InputSource). |
SelectorList |
parseSelectors(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parseSelectors(InputSource). |
SelectorList |
parseSelectors(java.lang.String source)
Parse a comma separated list of selectors.
|
void |
parseStyleDeclaration(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parseStyleDeclaration(InputSource). |
void |
parseStyleSheet(InputSource source)
SAC: Implements
org.w3c.css.sac.Parser#parseStyleSheet(InputSource). |
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(java.util.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.
|
public Parser parser
public ExtendedParserWrapper(Parser parser)
public static ExtendedParser wrap(Parser p)
p - Parser to wrap.public java.lang.String getParserVersion()
org.w3c.css.sac.Parser#getParserVersion().public void setLocale(java.util.Locale locale)
throws CSSException
org.w3c.css.sac.Parser#setLocale(Locale).CSSExceptionpublic void setDocumentHandler(DocumentHandler handler)
org.w3c.css.sac.Parser#setDocumentHandler(DocumentHandler).public void setSelectorFactory(SelectorFactory selectorFactory)
org.w3c.css.sac.Parser#setSelectorFactory(SelectorFactory).public void setConditionFactory(ConditionFactory conditionFactory)
org.w3c.css.sac.Parser#setConditionFactory(ConditionFactory).public void setErrorHandler(ErrorHandler handler)
org.w3c.css.sac.Parser#setErrorHandler(ErrorHandler).public void parseStyleSheet(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parseStyleSheet(InputSource).CSSExceptionjava.io.IOExceptionpublic void parseStyleDeclaration(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parseStyleDeclaration(InputSource).parseStyleDeclaration in interface ExtendedParsersource - The declaration.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.public void parseRule(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parseRule(InputSource).parseRule in interface ExtendedParserCSSException - 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.public SelectorList parseSelectors(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parseSelectors(InputSource).parseSelectors in interface ExtendedParserCSSException - 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.public SelectorList parseSelectors(java.lang.String source)
throws CSSException,
java.io.IOException
parseSelectors in interface ExtendedParserCSSException - 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.public LexicalUnit parsePropertyValue(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parsePropertyValue(InputSource).parsePropertyValue in interface ExtendedParserCSSException - 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.public LexicalUnit parsePropertyValue(java.lang.String source)
throws CSSException,
java.io.IOException
parsePropertyValue in interface ExtendedParserCSSException - 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.public boolean parsePriority(InputSource source)
throws CSSException,
java.io.IOException
org.w3c.css.sac.Parser#parsePriority(InputSource).parsePriority in interface ExtendedParserCSSException - 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.public SACMediaList parseMedia(java.lang.String mediaText)
throws CSSException,
java.io.IOException
ExtendedParser.parseMedia(String).parseMedia in interface ExtendedParserCSSException - 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.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.