|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.clients.web.formatter.NiceFormatter
public class NiceFormatter
Nicely format a string for output on a web page. This means that the string is
encoded by one of the HTML.niceFormat(String)
methods to prevent pollution
of the generated HTML.
Field Summary | |
---|---|
private int |
flags
|
Constructor Summary | |
---|---|
NiceFormatter()
Create a new formatter with default options: HTML.LINK_EMAIL + HTML.LINK_URL + HTML.SMART_IMAGES |
|
NiceFormatter(int flags)
Create a new formatter with options. |
Method Summary | |
---|---|
String |
format(String value)
Format a value by converting it to a string. |
String |
parseString(String value)
Parse a string and return a value of the correct type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int flags
Constructor Detail |
---|
public NiceFormatter()
HTML.LINK_EMAIL
+ HTML.LINK_URL
+ HTML.SMART_IMAGES
public NiceFormatter(int flags)
flags
- The flags to use when formattingHTML.niceFormat(String, int)
Method Detail |
---|
public String format(String value)
Formatter
format
in interface Formatter<String>
value
- The value to format
public String parseString(String value)
Formatter
parseString
in interface Formatter<String>
value
- The string to parse
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |