Interface Parser2

All Superinterfaces:
Parser
All Known Implementing Classes:
CSSParser

public interface Parser2 extends Parser
Updates SAC's Parser interface.
  • Method Details

    • setFlag

      void setFlag(Parser2.Flag flag)
      Set a parser flag.
      Parameters:
      flag - the flag.
    • unsetFlag

      void unsetFlag(Parser2.Flag flag)
      Unset a parser flag.
      Parameters:
      flag - the flag.
    • parseRule

      void parseRule(InputSource source, Parser2.NamespaceMap nsmap) throws CSSException, IOException
      Parse a CSS rule.
      Parameters:
      source - the rule's source.
      nsmap - the namespace map.
      Throws:
      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.