|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.css.parser.ExtendedParserWrapper
This class implements the ExtendedParser
interface by wrapping a standard Parser.
| Field Summary | |
Parser |
parser
|
| Constructor Summary | |
ExtendedParserWrapper(Parser parser)
|
|
| Method Summary | |
java.lang.String |
getParserVersion()
SAC: Implements Parser.getParserVersion(). |
SACMediaList |
parseMedia(java.lang.String mediaText)
Implements ExtendedParser.parseMedia(String). |
boolean |
parsePriority(InputSource source)
SAC: Implements Parser.parsePriority(InputSource). |
boolean |
parsePriority(java.lang.String source)
Parse a CSS priority value (e.g. |
LexicalUnit |
parsePropertyValue(InputSource source)
SAC: Implements Parser.parsePropertyValue(InputSource). |
LexicalUnit |
parsePropertyValue(java.lang.String source)
Parse a CSS property value. |
void |
parseRule(InputSource source)
SAC: Implements Parser.parseRule(InputSource). |
void |
parseRule(java.lang.String source)
Parse a CSS rule. |
SelectorList |
parseSelectors(InputSource source)
SAC: Implements Parser.parseSelectors(InputSource). |
SelectorList |
parseSelectors(java.lang.String source)
Parse a comma separated list of selectors. |
void |
parseStyleDeclaration(InputSource source)
SAC: Implements Parser.parseStyleDeclaration(InputSource). |
void |
parseStyleDeclaration(java.lang.String source)
Parse a CSS style declaration (without '{' and '}'). |
void |
parseStyleSheet(InputSource source)
SAC: Implements Parser.parseStyleSheet(InputSource). |
void |
parseStyleSheet(java.lang.String uri)
Parse a CSS document from a URI. |
void |
setConditionFactory(ConditionFactory conditionFactory)
SAC: Implements Parser.setConditionFactory(ConditionFactory). |
void |
setDocumentHandler(DocumentHandler handler)
SAC: Implements Parser.setDocumentHandler(DocumentHandler). |
void |
setErrorHandler(ErrorHandler handler)
SAC: Implements Parser.setErrorHandler(ErrorHandler). |
void |
setLocale(java.util.Locale locale)
SAC: Implements Parser.setLocale(Locale). |
void |
setSelectorFactory(SelectorFactory selectorFactory)
SAC: Implements Parser.setSelectorFactory(SelectorFactory). |
static ExtendedParser |
wrap(Parser p)
This converts a standard @link org.w3c.css.sac.Parser into an Extended Parser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Parser parser
| Constructor Detail |
public ExtendedParserWrapper(Parser parser)
| Method Detail |
public static ExtendedParser wrap(Parser p)
p - Parser to wrap.public java.lang.String getParserVersion()
Parser.getParserVersion().getParserVersion in interface Parser
public void setLocale(java.util.Locale locale)
throws CSSException
Parser.setLocale(Locale).setLocale in interface Parserorg.w3c.css.sac.Parserlocale - A Java Locale object.CSSException - Throws an exception
(using the previous or default locale) if the
requested locale is not supported.CSSException,
CSSParseExceptionpublic void setDocumentHandler(DocumentHandler handler)
Parser.setDocumentHandler(DocumentHandler).setDocumentHandler in interface Parserorg.w3c.css.sac.Parserhandler - The document handler.DocumentHandlerpublic void setSelectorFactory(SelectorFactory selectorFactory)
Parser.setSelectorFactory(SelectorFactory).setSelectorFactory in interface Parserpublic void setConditionFactory(ConditionFactory conditionFactory)
Parser.setConditionFactory(ConditionFactory).setConditionFactory in interface Parserpublic void setErrorHandler(ErrorHandler handler)
Parser.setErrorHandler(ErrorHandler).setErrorHandler in interface Parserorg.w3c.css.sac.Parserhandler - The error handler.ErrorHandler,
CSSException
public void parseStyleSheet(InputSource source)
throws CSSException,
java.io.IOException
Parser.parseStyleSheet(InputSource).parseStyleSheet in interface Parserorg.w3c.css.sac.Parsersource - The input source for the top-level of the
CSS document.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.InputSource,
Parser.parseStyleSheet(java.lang.String),
Parser.setDocumentHandler(org.w3c.css.sac.DocumentHandler),
Parser.setErrorHandler(org.w3c.css.sac.ErrorHandler)
public void parseStyleSheet(java.lang.String uri)
throws CSSException,
java.io.IOException
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.
parseStyleSheet in interface Parseruri - The URI.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.parseStyleSheet(InputSource)
public void parseStyleDeclaration(InputSource source)
throws CSSException,
java.io.IOException
Parser.parseStyleDeclaration(InputSource).parseStyleDeclaration in interface Parserorg.w3c.css.sac.ParserstyleValue - 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 parseStyleDeclaration(java.lang.String source)
throws CSSException,
java.io.IOException
parseStyleDeclaration in interface ExtendedParserstyleValue - 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
Parser.parseRule(InputSource).parseRule in interface Parserorg.w3c.css.sac.ParserCSSException - 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(java.lang.String source)
throws CSSException,
java.io.IOException
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
Parser.parseSelectors(InputSource).parseSelectors in interface Parserorg.w3c.css.sac.ParserCSSException - 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
Parser.parsePropertyValue(InputSource).parsePropertyValue in interface Parserorg.w3c.css.sac.ParserCSSException - 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
Parser.parsePriority(InputSource).parsePriority in interface Parserorg.w3c.css.sac.ParserCSSException - 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 ExtendedParserorg.apache.batik.css.parser.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(java.lang.String source)
throws CSSException,
java.io.IOException
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||