类 CssLinkResourceTransformer.AbstractCssLinkParser
- java.lang.Object
- org.springframework.web.servlet.resource.CssLinkResourceTransformer.AbstractCssLinkParser
protected abstract static class CssLinkResourceTransformer.AbstractCssLinkParser extends Object implements CssLinkResourceTransformer.CssLinkParser
构造器概要
构造器 限定符 构造器 说明 protected
AbstractCssLinkParser()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected int
addLink(int index, String endKey, String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
protected abstract int
extractLink(int index, String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
Invoked after a keyword match, after whitespaces 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.void
parseLink(String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
构造器详细资料
AbstractCssLinkParser
protected AbstractCssLinkParser()
方法详细资料
getKeyword
protected abstract String getKeyword()
Return the keyword to use to search for links.
parseLink
public void parseLink(String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
addLink
protected int addLink(int index, String endKey, String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
extractLink
protected abstract int extractLink(int index, String content, Set<org.springframework.web.servlet.resource.CssLinkResourceTransformer.CssLinkInfo> linkInfos)
Invoked after a keyword match, after whitespaces removed, and when the next char is neither a single nor double quote.