@@ -0,0 +1,1736 @@
+package com.njust.test.css;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport org.w3c.css.sac.InputSource;%0Aimport org.w3c.dom.css.CSSRule;%0Aimport org.w3c.dom.css.CSSStyleSheet;%0A%0Aimport com.steadystate.css.dom.CSSRuleListImpl;%0Aimport com.steadystate.css.dom.CSSStyleDeclarationImpl;%0Aimport com.steadystate.css.dom.CSSStyleRuleImpl;%0Aimport com.steadystate.css.parser.CSSOMParser;%0A%0Apublic class CssTest%0A%7B%0A    @Test%0A    public void readTest()%0A        throws IOException%0A    %7B%0A        String filePath = %22E:%5C%5Ccommonltr.css%22;%0A%0A        FileInputStream fileInputStream = new FileInputStream(filePath);%0A        InputSource source = new InputSource(new InputStreamReader(fileInputStream));%0A        CSSOMParser parser = new CSSOMParser();%0A        CSSStyleSheet stylesheet = parser.parseStyleSheet(source, null, null);%0A%0A        CSSRuleListImpl cssRules = (CSSRuleListImpl)stylesheet.getCssRules();%0A        List%3CCSSRule%3E rules = cssRules.getRules();%0A        for (CSSRule rule : rules)%0A        %7B%0A            CSSStyleRuleImpl styleRule = (CSSStyleRuleImpl)rule;%0A            CSSStyleDeclarationImpl style = (CSSStyleDeclarationImpl)styleRule.getStyle();%0A%0A            String background = style.getBackground();%0A            if (!background.isEmpty())%0A            %7B%0A                System.out.println(background);%0A            %7D%0A%0A            String backgroundImage = style.getBackgroundImage();%0A            if (!backgroundImage.isEmpty())%0A            %7B%0A                System.out.println(backgroundImage);%0A            %7D%0A        %7D%0A%0A    %7D%0A%0A%7D%0A%0A%0A//    url(icon-arrowrt.gif) 0px 2px no-repeat%0A//    url(icon-arrowdn.gif) 0px 4px no-repeat%0A//    url(icon-cc.png)%0A%0A

Create CssTest.java