public class ERXSimpleHTMLFormatter extends Format
Format.Field| Constructor and Description |
|---|
ERXSimpleHTMLFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
applyFormat(Object anObject)
Applies the HTML formatting to a given string
object replacing ASCII formatting with HTML
formatting.
|
StringBuffer |
format(Object object,
StringBuffer buffer,
FieldPosition fp)
The FieldPosition is not important, so this method
just calls
applyFormat and appends that
string to the buffer. |
static ERXSimpleHTMLFormatter |
formatter()
Method used to retrieve the shared instance of the
html formatter.
|
String |
htmlStringFromString(String aString)
Converts an ASCII string into an HTML
string.
|
protected static String |
HTMLTab()
Simple method used to get the url to the spacer gif
s.gif from the WOResourceManager.
|
Object |
parseObject(String inString)
Converts an HTML string into an ASCII string.
|
Object |
parseObject(String string,
ParsePosition p)
Converts an HTML string into an ASCII string
starting from a given parse position.
|
String |
stringForObjectValue(Object anObject)
Accessor method used to convert an ASCII
string into an HTML string.
|
clone, format, formatToCharacterIteratorprotected static String HTMLTab()
public static ERXSimpleHTMLFormatter formatter()
public String htmlStringFromString(String aString)
aString - to be convertedpublic StringBuffer format(Object object, StringBuffer buffer, FieldPosition fp)
applyFormat and appends that
string to the buffer.public String applyFormat(Object anObject) throws IllegalArgumentException
anObject - to have the formatting applied toIllegalArgumentExceptionpublic Object parseObject(String inString) throws ParseException
parseObject in class FormatinString - HTML stringParseExceptionpublic Object parseObject(String string, ParsePosition p)
parseObject in class Formatstring - HTML stringp - current parsing positionpublic String stringForObjectValue(Object anObject) throws IllegalArgumentException
anObject - string to convertIllegalArgumentExceptionCopyright © 2002 – 2020 Project Wonder.