public class DefaultFormatter extends Object implements Format
| Modifier and Type | Field and Description |
|---|---|
protected ElementFormatter<IniComment> |
commentElementFormatter |
protected IniSection |
lastSection
last section
|
protected ElementFormatter<IniProperty> |
propertyElementFormatter |
protected ElementFormatter<IniSection> |
sectionElementFormatter |
| Constructor and Description |
|---|
DefaultFormatter(ElementFormatter<IniComment> commentElementFormatter,
ElementFormatter<IniSection> sectionElementFormatter,
ElementFormatter<IniProperty> propertyElementFormatter) |
| Modifier and Type | Method and Description |
|---|---|
IniElement |
formatLine(String raw)
format line as element.
|
void |
init()
Back to the initial state
|
protected final ElementFormatter<IniComment> commentElementFormatter
protected final ElementFormatter<IniSection> sectionElementFormatter
protected final ElementFormatter<IniProperty> propertyElementFormatter
protected IniSection lastSection
public DefaultFormatter(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter)
public IniElement formatLine(String raw)
formatLine in interface Formatraw - line dataIniElementCopyright © 2021. All rights reserved.