类 CssLinkResourceTransformer.AbstractLinkParser
- java.lang.Object
- org.springframework.web.servlet.resource.CssLinkResourceTransformer.AbstractLinkParser
protected abstract static class CssLinkResourceTransformer.AbstractLinkParser extends Object implements CssLinkResourceTransformer.LinkParser
Abstract base class forCssLinkResourceTransformer.LinkParser
implementations.
构造器概要
构造器 限定符 构造器 说明 protected
AbstractLinkParser()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected int
extractLink(int index, String endKey, String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
protected abstract int
extractLink(int index, String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.protected abstract String
getKeyword()
Return the keyword to use to search for links, e.g.void
parse(String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
构造器详细资料
AbstractLinkParser
protected AbstractLinkParser()
方法详细资料
getKeyword
protected abstract String getKeyword()
Return the keyword to use to search for links, e.g. "@import", "url("
parse
public void parse(String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
extractLink
protected int extractLink(int index, String endKey, String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
extractLink
protected abstract int extractLink(int index, String content, SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
Invoked after a keyword match, after whitespace has been removed, and when the next char is neither a single nor double quote.