Package org.aoju.bus.setting.format
Class SectionFormatter
java.lang.Object
org.aoju.bus.setting.format.AbstractFormatter<IniSection>
org.aoju.bus.setting.format.SectionFormatter
- All Implemented Interfaces:
ElementFormatter<IniSection>
将字符串值格式设置为
IniSection- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionSectionFormatter(char head, char end) SectionFormatter(char head, char end, CommentFormatter commentElementFormatter) SectionFormatter(CommentFormatter commentElementFormatter) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck this value.this method will not check value, so you shouldcheck(String)first.Methods inherited from class org.aoju.bus.setting.format.AbstractFormatter
getCommentElementFormatter, setCommentElementFormatter
-
Constructor Details
-
SectionFormatter
-
SectionFormatter
public SectionFormatter() -
SectionFormatter
-
SectionFormatter
public SectionFormatter(char head, char end)
-
-
Method Details
-
check
check this value. if this value's first char ==HEADvalue, pass.- Parameters:
value- value- Returns:
- true if can.
-
format
this method will not check value, so you shouldcheck(String)first. However, not checking will not necessarily report an error, but may result in non-compliance.- Parameters:
value- a String valueline- line number- Returns:
IniSection, can not be null.
-