com.osbcp.cssparser
Class CSSParser

java.lang.Object
  extended by com.osbcp.cssparser.CSSParser

public final class CSSParser
extends java.lang.Object

Main logic for the CSS parser.

Author:
Christoffer Pettersson

Method Summary
static java.util.List<Rule> parse(java.lang.String css)
          Reads CSS as a String and returns back a list of Rules.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static java.util.List<Rule> parse(java.lang.String css)
                                  throws java.lang.Exception
Reads CSS as a String and returns back a list of Rules.

Parameters:
css - A String representation of CSS.
Returns:
A list of Rules
Throws:
java.lang.Exception - If any errors occur.