Package org.javlo.helper
Class CSSParser
- java.lang.Object
-
- org.javlo.helper.CSSParser
-
public class CSSParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSSParser.Style
-
Constructor Summary
Constructors Constructor Description CSSParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
_cssInline(String html)
static void
main(String[] args)
static boolean
match(XMLManipulationHelper.TagDescription[] tags, XMLManipulationHelper.TagDescription tag, CSSElement elem)
static String
mergeCSS(String html, boolean removeCSS)
static String
mergeCSS_bk(String css, String html)
static List<CSSElement>
parseCSS(String css)
static List<CSSParser.Style>
parseStyle(String style)
static String
prefixAllQueries(String prefix, String css)
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
-
Method Detail
-
parseStyle
public static List<CSSParser.Style> parseStyle(String style)
-
parseCSS
public static List<CSSElement> parseCSS(String css)
-
match
public static boolean match(XMLManipulationHelper.TagDescription[] tags, XMLManipulationHelper.TagDescription tag, CSSElement elem)
-
mergeCSS
public static String mergeCSS(String html, boolean removeCSS) throws XMLManipulationHelper.BadXMLException
-
mergeCSS_bk
public static String mergeCSS_bk(String css, String html) throws XMLManipulationHelper.BadXMLException
-
_cssInline
public static String _cssInline(String html) throws IOException
- Throws:
IOException
-
prefixAllQueries
public static final String prefixAllQueries(String prefix, String css) throws io.bit3.jsass.CompilationException
- Throws:
io.bit3.jsass.CompilationException
-
main
public static void main(String[] args) throws io.bit3.jsass.CompilationException
- Throws:
io.bit3.jsass.CompilationException
-
-