public class Formatter extends Object
| Constructor and Description |
|---|
Formatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerFormatter(String format,
FormatterInterface handler)
Registers format handler.
|
String |
transform(String format,
String text)
Transforms text from given form.
|
public void registerFormatter(String format, FormatterInterface handler)
format - Format name.handler - Format handler.public String transform(String format, String text) throws TextProcessingException
format - Format name.text - Source text.TextProcessingException - When specified format can't be handled or handler throws exception.Copyright © 2015–2017 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.