public class NiceFormatter extends Object implements Formatter<String>
HTML.niceFormat(String)
methods to prevent pollution
of the generated HTML.Modifier and Type | Field and Description |
---|---|
private int |
flags |
Constructor and Description |
---|
NiceFormatter()
|
NiceFormatter(int flags)
Create a new formatter with options.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public NiceFormatter()
public NiceFormatter(int flags)
flags
- The flags to use when formattingHTML.niceFormat(String, int)
public String format(String value)
Formatter
public String parseString(String value)
Formatter
parseString
in interface Formatter<String>
value
- The string to parse