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 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.
-
Constructor Details
-
CssStyleSheetParser
private CssStyleSheetParser()Creates a newCssStyleSheetParser.
-
-
Method Details
-
parse
Parses a stream into aCssStyleSheet.- Parameters:
stream- the streambaseUrl- 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 streamcontroller- 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 databaseUrl- the base url- Returns:
- the resulting
CssStyleSheet
-
parse
Parses a string into aCssStyleSheet.- Parameters:
data- the data- Returns:
- the resulting
CssStyleSheet
-