Package org.miaixz.bus.setting.format
Class DefaultFormatter
java.lang.Object
org.miaixz.bus.setting.format.DefaultFormatter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ElementFormatter<IniComment> protected IniSectionlast sectionprotected final ElementFormatter<IniProperty> protected final ElementFormatter<IniSection> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFormatter(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter) -
Method Summary
Modifier and TypeMethodDescriptionformatLine(String raw) format line as element. if empty line, return null.voidinit()Back to the initial state
-
Field Details
-
commentElementFormatter
-
sectionElementFormatter
-
propertyElementFormatter
-
lastSection
last section
-
-
Constructor Details
-
DefaultFormatter
public DefaultFormatter(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter)
-
-
Method Details
-
formatLine
format line as element. if empty line, return null.- Specified by:
formatLinein interfaceFormat- Parameters:
raw- line data- Returns:
IniElement
-
init
-