Class CssStyleSheetParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssStyleSheetParser
Utilities class to parse a CSS style sheet.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CssStyleSheet
parse
(InputStream stream) Parses a stream into aCssStyleSheet
.static CssStyleSheet
parse
(InputStream stream, String baseUrl) Parses a stream into aCssRuleSetParser
.static CssStyleSheet
Parses a string into aCssStyleSheet
.static CssStyleSheet
Parses a string into aCssStyleSheet
.
-
Method Details
-
parse
Parses a stream into aCssRuleSetParser
.- Parameters:
-
stream
- the stream -
baseUrl
- the base url - Returns:
-
the resulting
CssStyleSheet
- Throws:
-
IOException
- Signals that an I/O exception has occurred.
-
parse
Parses a stream into aCssStyleSheet
.- Parameters:
-
stream
- the stream - Returns:
-
the resulting
CssStyleSheet
- Throws:
-
IOException
- Signals that an I/O exception has occurred.
-
parse
Parses a string into aCssStyleSheet
.- Parameters:
-
data
- the style sheet data -
baseUrl
- the base url - Returns:
-
the resulting
CssStyleSheet
-
parse
Parses a string into aCssStyleSheet
.- Parameters:
-
data
- the data - Returns:
-
the resulting
CssStyleSheet
-