Interface ExtendedParser

All Superinterfaces:
org.w3c.css.sac.Parser
All Known Implementing Classes:
ExtendedParserWrapper, Parser

public interface ExtendedParser extends org.w3c.css.sac.Parser
This class implements the Parser interface plus a set of custom methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.w3c.css.sac.SACMediaList
    parseMedia(String mediaText)
    Parse a CSS media value.
    boolean
    Parse a CSS priority value (e.g. "!important").
    org.w3c.css.sac.LexicalUnit
    Parse a CSS property value.
    void
    parseRule(String source)
    Parse a CSS rule.
    org.w3c.css.sac.SelectorList
    Parse a comma separated list of selectors.
    void
    Parse a CSS style declaration (without '{' and '}').

    Methods inherited from interface org.w3c.css.sac.Parser

    getParserVersion, parsePriority, parsePropertyValue, parseRule, parseSelectors, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, setConditionFactory, setDocumentHandler, setErrorHandler, setLocale, setSelectorFactory
  • Method Details

    • parseStyleDeclaration

      void parseStyleDeclaration(String source) throws org.w3c.css.sac.CSSException, IOException
      Parse a CSS style declaration (without '{' and '}').
      Parameters:
      source - The declaration.
      Throws:
      org.w3c.css.sac.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.
    • parseRule

      void parseRule(String source) throws org.w3c.css.sac.CSSException, IOException
      Parse a CSS rule.
      Throws:
      org.w3c.css.sac.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.
    • parseSelectors

      org.w3c.css.sac.SelectorList parseSelectors(String source) throws org.w3c.css.sac.CSSException, IOException
      Parse a comma separated list of selectors.
      Throws:
      org.w3c.css.sac.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.
    • parsePropertyValue

      org.w3c.css.sac.LexicalUnit parsePropertyValue(String source) throws org.w3c.css.sac.CSSException, IOException
      Parse a CSS property value.
      Throws:
      org.w3c.css.sac.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.
    • parseMedia

      org.w3c.css.sac.SACMediaList parseMedia(String mediaText) throws org.w3c.css.sac.CSSException, IOException
      Parse a CSS media value.
      Throws:
      org.w3c.css.sac.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.
    • parsePriority

      boolean parsePriority(String source) throws org.w3c.css.sac.CSSException, IOException
      Parse a CSS priority value (e.g. "!important").
      Throws:
      org.w3c.css.sac.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.