public class ExtendedParserWrapper extends 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 |
---|---|
String |
getParserVersion()
SAC: Implements
org.w3c.css.sac.Parser#getParserVersion() . |
SACMediaList |
parseMedia(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(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(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(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 String getParserVersion()
org.w3c.css.sac.Parser#getParserVersion()
.public void setLocale(Locale locale) throws CSSException
org.w3c.css.sac.Parser#setLocale(Locale)
.CSSException
public 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, IOException
org.w3c.css.sac.Parser#parseStyleSheet(InputSource)
.CSSException
IOException
public void parseStyleDeclaration(InputSource source) throws CSSException, IOException
org.w3c.css.sac.Parser#parseStyleDeclaration(InputSource)
.parseStyleDeclaration
in interface ExtendedParser
source
- The declaration.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.public void parseRule(InputSource source) throws CSSException, IOException
org.w3c.css.sac.Parser#parseRule(InputSource)
.parseRule
in interface ExtendedParser
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.public SelectorList parseSelectors(InputSource source) throws CSSException, IOException
org.w3c.css.sac.Parser#parseSelectors(InputSource)
.parseSelectors
in interface ExtendedParser
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.public SelectorList parseSelectors(String source) throws CSSException, IOException
parseSelectors
in interface ExtendedParser
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.public LexicalUnit parsePropertyValue(InputSource source) throws CSSException, IOException
org.w3c.css.sac.Parser#parsePropertyValue(InputSource)
.parsePropertyValue
in interface ExtendedParser
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.public LexicalUnit parsePropertyValue(String source) throws CSSException, IOException
parsePropertyValue
in interface ExtendedParser
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.public boolean parsePriority(InputSource source) throws CSSException, IOException
org.w3c.css.sac.Parser#parsePriority(InputSource)
.parsePriority
in interface ExtendedParser
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.public SACMediaList parseMedia(String mediaText) throws CSSException, IOException
ExtendedParser.parseMedia(String)
.parseMedia
in interface ExtendedParser
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.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.