Class StylesheetFactoryImpl
java.lang.Object
com.openhtmltopdf.context.StylesheetFactoryImpl
- All Implemented Interfaces:
StylesheetFactory
A Factory class for Cascading Style Sheets. Sheets are parsed using a single
parser instance for all sheets. Sheets are cached by URI using a LRU test,
but timestamp of file is not checked.
- Author:
- Torbjoern Gannholm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStylesheet(StylesheetInfo info) Returns a sheet by its key null if not able to loadparse(Reader reader, StylesheetInfo info) parseStyleDeclaration(int origin, String styleDeclaration) voidsetSupportCMYKColors(boolean b) voidsetUserAgentCallback(UserAgentCallback userAgent)
-
Constructor Details
-
StylesheetFactoryImpl
-
-
Method Details
-
parse
- Specified by:
parsein interfaceStylesheetFactory
-
parseStyleDeclaration
- Specified by:
parseStyleDeclarationin interfaceStylesheetFactory
-
getStylesheet
Returns a sheet by its key null if not able to load- Specified by:
getStylesheetin interfaceStylesheetFactory- Parameters:
info- The StylesheetInfo for this sheet- Returns:
- The stylesheet
-
setUserAgentCallback
-
setSupportCMYKColors
public void setSupportCMYKColors(boolean b)
-