Class CssStyleSheetParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssStyleSheetParser
Utilities class to parse a CSS style sheet.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CssStyleSheetparse(InputStream stream) Parses a stream into aCssStyleSheet.static CssStyleSheetparse(InputStream stream, CssParserStateController controller) Parses a stream into aCssStyleSheet.static CssStyleSheetparse(InputStream stream, String baseUrl) Parses a stream into aCssStyleSheet.static CssStyleSheetParses a string into aCssStyleSheet.static CssStyleSheetParses a string into aCssStyleSheet.
-
Method Details
-
parse
Parses a stream into aCssStyleSheet.- Parameters:
-
stream- the stream -
baseUrl- the base url - Returns:
-
the resulting
CssStyleSheet - Throws:
-
IOException- Signals that an I/O exception has occurred.
-
parse
public static CssStyleSheet parse(InputStream stream, CssParserStateController controller) throws IOException Parses a stream into aCssStyleSheet.- Parameters:
-
stream- the stream -
controller- the parse state controller - 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
-