public class SrcsetStringTransformer extends Object implements StringTransformer
StringTransformer that rewrites URLs in SRCSET
attribute.| Modifier and Type | Field and Description |
|---|---|
protected static String |
SRCSET_MEMBER |
protected static Pattern |
srcsetUrlPattern |
| Constructor and Description |
|---|
SrcsetStringTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
patternRewrite(ReplayParseContext context,
StringBuilder sb,
Pattern pattern,
String flags) |
String |
transform(ReplayParseContext context,
String srcset)
transforms text with certain rewrite rules.
|
protected static String SRCSET_MEMBER
protected static Pattern srcsetUrlPattern
protected void patternRewrite(ReplayParseContext context, StringBuilder sb, Pattern pattern, String flags)
public String transform(ReplayParseContext context, String srcset)
StringTransformerRefactoring: change input type to CharSequence.
transform in interface StringTransformercontext - ReplayParseContextsrcset - text data to be transformedCopyright © 2005–2017 IIPC. All rights reserved.