|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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)
|
|
| 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 String getParserVersion()
Parser.getParserVersion().
getParserVersion in interface Parser
public void setLocale(Locale locale)
throws CSSException
Parser.setLocale(Locale).
setLocale in interface 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 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 Parserhandler - The error handler.ErrorHandler,
CSSException
public void parseStyleSheet(InputSource source)
throws CSSException,
IOException
Parser.parseStyleSheet(InputSource).
parseStyleSheet in interface Parsersource - The input source for the top-level of the
CSS document.
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.InputSource,
Parser.parseStyleSheet(java.lang.String),
Parser.setDocumentHandler(org.w3c.css.sac.DocumentHandler),
Parser.setErrorHandler(org.w3c.css.sac.ErrorHandler)
public void parseStyleSheet(String uri)
throws CSSException,
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.
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,
IOException
Parser.parseStyleDeclaration(InputSource).
parseStyleDeclaration in interface Parsersource - The source of the style sheet.
IOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.
CSSException - Any CSS exception, possibly
wrapping another exception.
public void parseStyleDeclaration(String source)
throws CSSException,
IOException
parseStyleDeclaration in interface ExtendedParsersource - 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
Parser.parseRule(InputSource).
parseRule in interface ParserIOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.
CSSException - Any CSS exception, possibly
wrapping another exception.
public void parseRule(String source)
throws CSSException,
IOException
parseRule in interface ExtendedParserCSSException - 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
Parser.parseSelectors(InputSource).
parseSelectors in interface ParserCSSException - 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 ExtendedParserCSSException - 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
Parser.parsePropertyValue(InputSource).
parsePropertyValue in interface ParserIOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.
CSSException - Any CSS exception, possibly
wrapping another exception.
public LexicalUnit parsePropertyValue(String source)
throws CSSException,
IOException
parsePropertyValue in interface ExtendedParserCSSException - 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
Parser.parsePriority(InputSource).
parsePriority in interface ParserCSSException - 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 ExtendedParserIOException - An IO exception from the parser,
possibly from a byte stream or character stream
supplied by the application.
CSSException - Any CSS exception, possibly
wrapping another exception.
public boolean parsePriority(String source)
throws CSSException,
IOException
parsePriority in interface ExtendedParserCSSException - 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||