Class CssStyleSheetParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssStyleSheetParser
Utilities class to parse a CSS style sheet.
-
Constructor Summary
Constructors -
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
.
-
Constructor Details
-
CssStyleSheetParser
private CssStyleSheetParser()Creates a newCssStyleSheetParser
.
-
-
Method Details
-
parse
Parses a stream into aCssRuleSetParser
.- Parameters:
stream
- the streambaseUrl
- 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 databaseUrl
- the base url- Returns:
- the resulting
CssStyleSheet
-
parse
Parses a string into aCssStyleSheet
.- Parameters:
data
- the data- Returns:
- the resulting
CssStyleSheet
-