package org.w3c.css.sac; import java.io.IOException; import java.util.Locale; public interface Parser { String getParserVersion(); boolean parsePriority(InputSource inputSource) throws CSSException, IOException; LexicalUnit parsePropertyValue(InputSource inputSource) throws CSSException, IOException; void parseRule(InputSource inputSource) throws CSSException, IOException; SelectorList parseSelectors(InputSource inputSource) throws CSSException, IOException; void parseStyleDeclaration(InputSource inputSource) throws CSSException, IOException; void parseStyleSheet(String str) throws CSSException, IOException; void parseStyleSheet(InputSource inputSource) throws CSSException, IOException; void setConditionFactory(ConditionFactory conditionFactory); void setDocumentHandler(DocumentHandler documentHandler); void setErrorHandler(ErrorHandler errorHandler); void setLocale(Locale locale) throws CSSException; void setSelectorFactory(SelectorFactory selectorFactory); }