|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.mwi.mobileok.basic.InCssResourceExtractor
public class InCssResourceExtractor
Extracts resources (images and imported CSS stylesheets) defined in the given CSS stylesheets.
The extracted is restricted to CSS styles that apply to the
handheld
and all
media types.
URIs whose scheme is not supported are ignored. As far as mobileOK
is concerned, this means that URIs must use the scheme HTTP
or HTTPS
, but note the code actually relies on the list of
ResourceRetriever
defined in TesterConfiguration
.
Constructor Summary | |
---|---|
InCssResourceExtractor()
Default constructor. |
Method Summary | |
---|---|
java.util.List<Resource> |
extractResources(Resource resource,
java.util.List<Resource> knownResources)
Extracts additional resources from the given one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InCssResourceExtractor()
Method Detail |
---|
public java.util.List<Resource> extractResources(Resource resource, java.util.List<Resource> knownResources)
ResourceExtractor
The extracted resources may contain resources that have already been previously extracted, but known resources should not be automatically copied to the returned list.
extractResources
in interface ResourceExtractor
resource
- resource to parse.knownResources
- list of known resources.
null
when no resources were extracted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |