Interface ParserControl


public interface ParserControl
Allows convenient access to certain parser functionalities.
  • Method Details

    • setDocumentHandler

      void setDocumentHandler(CSSHandler handler)
      Register a new document event handler at the parser.
      Parameters:
      handler - the document handler.
    • setErrorHandler

      void setErrorHandler(CSSErrorHandler handler)
      Register a new error event handler at the parser.
      Parameters:
      handler - the error handler.
    • getErrorHandler

      CSSErrorHandler getErrorHandler()
      Get a reference to the error handler.
      Returns:
      the error handler.
    • createLocator

      Locator createLocator()
      Create a locator for the current parsing location.
      Returns:
      the locator.