public class RTFEncodingFormatter extends java.lang.Object implements TMLContextAwareFormatter, de.innovationgate.utils.ReplaceProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FLAG_IMG_DATA_URL |
static java.lang.String |
FLAG_ONLY_SYSTEM_MACROS |
static java.lang.String |
SYSPROP_FORCE_HTML_CLEANUP |
Constructor and Description |
---|
RTFEncodingFormatter() |
RTFEncodingFormatter(boolean editMode)
Constructor
|
RTFEncodingFormatter(java.util.Set flags) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object obj) |
int |
replace(java.lang.String text,
int from,
int to,
java.io.Writer out) |
void |
setContext(TMLContext context)
Dependency injection method for TMLContext.
|
public static final java.lang.String FLAG_ONLY_SYSTEM_MACROS
public static final java.lang.String FLAG_IMG_DATA_URL
public static final java.lang.String SYSPROP_FORCE_HTML_CLEANUP
public RTFEncodingFormatter(boolean editMode)
editMode
- Tells if this formatter generates the code to be displayed in RTF editor.public RTFEncodingFormatter()
public RTFEncodingFormatter(java.util.Set flags)
public java.lang.String format(java.lang.Object obj) throws de.innovationgate.utils.FormattingException
format
in interface de.innovationgate.utils.ObjectFormatter
de.innovationgate.utils.FormattingException
public void setContext(TMLContext context)
TMLContextAwareFormatter
setContext
in interface TMLContextAwareFormatter
public int replace(java.lang.String text, int from, int to, java.io.Writer out) throws java.io.IOException
replace
in interface de.innovationgate.utils.ReplaceProcessor
java.io.IOException