Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
class: CSSParser [javadoc | source]
A CSS parser. This works by way of a delegate that implements the CSSParserCallback interface. The delegate is notified of the following events: This will parse much more than CSS 1, and loosely implements the recommendation for Forward-compatible parsing in section 7.1 of the CSS spec found at: http://www.w3.org/TR/REC-CSS1. If an error results in parsing, a RuntimeException will be thrown.

This will preserve case. If the callback wishes to treat certain poritions case insensitively (such as selectors), it should use toLowerCase, or something similar.

Nested Class Summary:
static interface  CSSParser.CSSParserCallback   
Method from javax.swing.text.html.CSSParser Summary:
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.CSSParser Detail:
  void parse(Reader reader,
    CSSParserCallback callback,
    boolean inRule) throws IOException