protected abstract static class CssLinkResourceTransformer.AbstractCssLinkParser extends java.lang.Object implements CssLinkResourceTransformer.CssLinkParser
Modifier | Constructor and Description |
---|---|
protected |
AbstractCssLinkParser() |
Modifier and Type | Method and Description |
---|---|
protected int |
addLink(int index,
java.lang.String endKey,
java.lang.String content,
java.util.Set<CssLinkResourceTransformer.CssLinkInfo> linkInfos) |
protected abstract int |
extractLink(int index,
java.lang.String content,
java.util.Set<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 java.lang.String |
getKeyword()
Return the keyword to use to search for links.
|
void |
parseLink(java.lang.String content,
java.util.Set<CssLinkResourceTransformer.CssLinkInfo> linkInfos) |
private int |
skipWhitespace(java.lang.String content,
int index) |
protected abstract java.lang.String getKeyword()
public void parseLink(java.lang.String content, java.util.Set<CssLinkResourceTransformer.CssLinkInfo> linkInfos)
parseLink
in interface CssLinkResourceTransformer.CssLinkParser
private int skipWhitespace(java.lang.String content, int index)
protected int addLink(int index, java.lang.String endKey, java.lang.String content, java.util.Set<CssLinkResourceTransformer.CssLinkInfo> linkInfos)
protected abstract int extractLink(int index, java.lang.String content, java.util.Set<CssLinkResourceTransformer.CssLinkInfo> linkInfos)