ro.isdc.wro.model.resource.processor.support
Class FallbackCssDataUriUrlInspector
java.lang.Object
ro.isdc.wro.model.resource.processor.support.CssUrlInspector
ro.isdc.wro.model.resource.processor.support.FallbackCssDataUriUrlInspector
public class FallbackCssDataUriUrlInspector
- extends CssUrlInspector
Similar to CssUrlInspector
but responsible for Preserving the original css uri along with the new one. This
should work also with browsers which do not support dataURI's.
- Since:
- 1.6.3
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FallbackCssDataUriUrlInspector
public FallbackCssDataUriUrlInspector()
getMatcher
protected Matcher getMatcher(String content)
-
- Overrides:
getMatcher
in class CssUrlInspector
- Returns:
- the
Matcher
for processed css content.
getOriginalDeclaration
protected String getOriginalDeclaration(Matcher matcher)
-
- Overrides:
getOriginalDeclaration
in class CssUrlInspector
- Parameters:
matcher
- the Matcher
used to find url occurances.
- Returns:
- the string representing entire css declaration containing the url.
getOriginalUrl
protected String getOriginalUrl(Matcher matcher)
-
- Overrides:
getOriginalUrl
in class CssUrlInspector
- Parameters:
matcher
- the Matcher
used to find url occurances.
- Returns:
- the url found in css declaration.
Copyright © 2008-2013. All Rights Reserved.