类 CssLinkResourceTransformer.AbstractLinkParser
- java.lang.Object
- org.springframework.web.reactive.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, char endChar, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
protected abstract int
extractUnquotedLink(int position, String content, Set<org.springframework.web.reactive.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.reactive.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.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
extractLink
protected int extractLink(int index, char endChar, String content, Set<org.springframework.web.reactive.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
extractUnquotedLink
protected abstract int extractUnquotedLink(int position, String content, Set<org.springframework.web.reactive.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.