CSS Parser in Java


Is there anything like Jsoup but instead of parsing HTML, I need to parse CSS, is there a parser similar to that that will create a Document model of a CSS? That perhaps can be used to iterate to nodes?

What I need to do is to find and replace "url" in the CSS file. And with html this is quite easy with Jsoup. However I am not sure if this will be possible with CSS.

If there are no such parser exist what are the options?

Perhaps this might help you?