public class CssTokenizer extends Object
| Constructor and Description |
|---|
CssTokenizer(String css) |
| Modifier and Type | Method and Description |
|---|---|
static org.w3c.dom.css.CSSRuleList |
getCssRules(String css)
Utils function for getting all the rules in a css file by parsing the file.
|
static Set<String> |
getImportedUrls(String css)
Utils function for getting all the urls from a css file content
|
com.steadystate.css.parser.Token |
nextToken()
A wrapper method for
SACParserCSS3TokenManager.getNextToken() |
public CssTokenizer(String css) throws IOException
IOExceptionpublic com.steadystate.css.parser.Token nextToken()
SACParserCSS3TokenManager.getNextToken()public static Set<String> getImportedUrls(String css) throws IOException
css - The css file contentIOExceptionpublic static org.w3c.dom.css.CSSRuleList getCssRules(String css) throws IOException
css - The css file contentIOExceptionCopyright © 2021. All rights reserved.