public class ImageParser extends HtmlSimpleParser
| Modifier and Type | Field and Description |
|---|---|
static String |
HEIGHT |
static String |
IMAGE_PATH |
static String |
SRC |
static String |
WIDTH |
end, name, start| Constructor and Description |
|---|
ImageParser() |
ImageParser(String name,
String start,
String end) |
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
createNode(String start,
String end,
String text,
Translator translator)
Create
AbstractNode instance from a given text |
protected String |
getImagePath(AbstractNode node) |
protected Media |
getMedia(String src) |
protected Media |
getMediaByFileName(String filename) |
generateAttributes, getEndExpression, getStartEndExpression, getStartExpressionpublic static final String SRC
public static final String HEIGHT
public static final String WIDTH
public static final String IMAGE_PATH
public AbstractNode createNode(String start, String end, String text, Translator translator)
AbstractParserAbstractNode instance from a given textcreateNode in class HtmlSimpleParserstart - is a String that was found when searching for a start of text that should be used to create nodeend - is a String that was found when searching for a end of text that should be used to create nodetext - text is whole text that was between start and end Stringstranslator - reference to Translator that would be used to search for sub tags in given textprotected String getImagePath(AbstractNode node)
Copyright © 2017 SAP SE. All Rights Reserved.