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
-
HTMLStyleSheetParser(String)
- Create a new HTMLStyleSheetParser
-
getStyleSheet()
- Returns the recognized style sheet.
-
notifyActivity(int, long)
-
-
notifyConnection(URLConnection)
-
-
notifyCreateRoot(URL, HtmlTag)
- Notifies root creation.
-
notifyEnd(HtmlTag)
- Notifies successful termination.
-
notifyFatalError(HtmlTag, Exception, String)
- Notifies a fatal error.
HTMLStyleSheetParser
public HTMLStyleSheetParser(String urlString) throws Exception
- Create a new HTMLStyleSheetParser
- Throws: Exception
- An error
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.
notifyActivity
public void notifyActivity(int lines,
long bytes)
notifyConnection
public void notifyConnection(URLConnection cnx)
notifyEnd
public void notifyEnd(HtmlTag root)
- Notifies successful termination.
- Parameters:
- root - the root of the current Tree.
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
getStyleSheet
public StyleSheet getStyleSheet()
- Returns the recognized style sheet.
- Returns:
- A style sheet.
All Packages Class Hierarchy This Package Previous Next Index