public interface I_CmsHtmlConverter
They can be configured in the configuration file opencms-vfs.xml and triggered when saving
XML contents or XML pages. Their behavior is configurable by setting the content-conversion property
value on VFS resources.
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
convertToString(java.lang.String htmlInput)
Converts the given HTML code according to the settings of this converter.
|
java.lang.String |
getEncoding()
Returns the encoding used for the HTML code conversion.
|
java.util.List<java.lang.String> |
getModes()
Returns the conversion modes to use as List of String parameters.
|
void |
init(java.lang.String encoding,
java.util.List<java.lang.String> modes)
Initializes the HTML converter instance.
|
java.lang.String convertToString(java.lang.String htmlInput)
throws java.io.UnsupportedEncodingException
htmlInput - the HTML input stored in a stringjava.io.UnsupportedEncodingException - if the encoding set for the conversion is not supportedjava.lang.String getEncoding()
java.util.List<java.lang.String> getModes()
void init(java.lang.String encoding,
java.util.List<java.lang.String> modes)
Possible values for the conversion mode are dependent from the converter implementation.
encoding - the encoding used for the HTML code conversionmodes - the conversion modes to use