protected abstract static class CssLinkResourceTransformer.AbstractLinkParser extends java.lang.Object implements CssLinkResourceTransformer.LinkParser
Modifier | Constructor and Description |
---|---|
protected |
AbstractLinkParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
extractLink(int index,
java.lang.String content,
java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
Invoked after a keyword match, after whitespaces removed, and when
the next char is neither a single nor double quote.
|
protected int |
extractLink(int index,
java.lang.String endKey,
java.lang.String content,
java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd) |
protected abstract java.lang.String |
getKeyword()
Return the keyword to use to search for links, e.g.
|
void |
parse(java.lang.String content,
java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> result) |
protected abstract java.lang.String getKeyword()
public void parse(java.lang.String content, java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> result)
parse
in interface CssLinkResourceTransformer.LinkParser
protected int extractLink(int index, java.lang.String endKey, java.lang.String content, java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)
protected abstract int extractLink(int index, java.lang.String content, java.util.SortedSet<org.springframework.web.servlet.resource.CssLinkResourceTransformer.ContentChunkInfo> linksToAdd)