All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.css.HTMLStyleSheetParser

java.lang.Object
   |
   +----org.w3c.css.css.HTMLStyleSheetParser

public final class HTMLStyleSheetParser
extends Object
implements HtmlParserListener

Constructor Index

 o HTMLStyleSheetParser(String)
Create a new HTMLStyleSheetParser

Method Index

 o getStyleSheet()
Returns the recognized style sheet.
 o notifyActivity(int, long)
 o notifyConnection(URLConnection)
 o notifyCreateRoot(URL, HtmlTag)
Notifies root creation.
 o notifyEnd(HtmlTag)
Notifies successful termination.
 o notifyFatalError(HtmlTag, Exception, String)
Notifies a fatal error.

Constructors

 o HTMLStyleSheetParser
 public HTMLStyleSheetParser(String urlString) throws Exception
Create a new HTMLStyleSheetParser

Throws: Exception
An error

Methods

 o notifyCreateRoot
 public void notifyCreateRoot(URL url,
                              HtmlTag root)
Notifies root creation. Sent when the parser builds the root of the HTML tree.

Parameters:
url - the URL being parsed.
root - the new root Tag for this parser.
 o notifyActivity
 public void notifyActivity(int lines,
                            long bytes)
 o notifyConnection
 public void notifyConnection(URLConnection cnx)
 o notifyEnd
 public void notifyEnd(HtmlTag root)
Notifies successful termination.

Parameters:
root - the root of the current Tree.
 o notifyFatalError
 public void notifyFatalError(HtmlTag root,
                              Exception x,
                              String s)
Notifies a fatal error. This notification is sent when the parser need to stop during or before parsing, due to an unexpected exception.

Parameters:
root - the root of the current Tree, if any.
x - the exception that cause the Parser stop
msg - an error message information
 o getStyleSheet
 public StyleSheet getStyleSheet()
Returns the recognized style sheet.

Returns:
A style sheet.

All Packages  Class Hierarchy  This Package  Previous  Next  Index