public final class Utils extends Object
CssFileBuilder provides all specific css builder functionality.| Modifier and Type | Method and Description |
|---|---|
static String |
resolveUrl(String libPath,
String filePath,
String url)
Resolves a relative link from a css style, such as an url to a background image, in respect to the
library path.
|
static String |
rewriteUrlsInCss(String[] libPathSegs,
String[] filePathSegs,
String css,
Session session,
long maxDataUriSize)
Resolves relative links within a css, such as an url to a background image, in respect to the
library path.
|
static String |
rewriteUrlsInCss(String libPath,
String filePath,
String css)
Resolves relative links within a css, such as an url to a background image, in respect to the
library path.
|
static String |
rewriteUrlsInCss(String libPath,
String filePath,
String css,
Session session,
long maxDataUriSize)
Resolves relative links within a css, such as an url to a background image, in respect to the
library path.
|
public static String rewriteUrlsInCss(String libPath, String filePath, String css)
libPath - the library path.filePath - the path of the original css filecss - the css to transformpublic static String rewriteUrlsInCss(String libPath, String filePath, String css, Session session, long maxDataUriSize)
libPath - the library path.filePath - the path of the original css filecss - the css to transformsession - use to auto-inline data uris.maxDataUriSize - only inline data uris if smallerpublic static String rewriteUrlsInCss(String[] libPathSegs, String[] filePathSegs, String css, Session session, long maxDataUriSize)
libPathSegs - the library path segments.filePathSegs - the path segments of the original css filecss - the css to transformsession - the session to use for embedding the datamaxDataUriSize - the max size for data urispublic static String resolveUrl(String libPath, String filePath, String url)
libPath - the library path.filePath - the path of the original css fileurl - the url referenced in the css fileCopyright © 2010 - 2020 Adobe. All Rights Reserved