public class JsonFormatter extends AbstractCacheableFormatter implements Formatter
encoding, log| Constructor and Description |
|---|
JsonFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doFormat(String code,
LineEnding ending) |
void |
init(Map<String,String> options,
ConfigurationSource cfg)
Initialize the
CodeFormatter instance to be used by this component. |
boolean |
isInitialized()
return true if this formatter have been initialized
|
formatFile, initCfgclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatFilepublic void init(Map<String,String> options, ConfigurationSource cfg)
FormatterCodeFormatter instance to be used by this component.init in interface Formatterinit in class AbstractCacheableFormatterprotected String doFormat(String code, LineEnding ending) throws IOException
doFormat in class AbstractCacheableFormatterIOExceptionpublic boolean isInitialized()
FormatterisInitialized in interface FormatterCopyright © 2010–2018. All rights reserved.