Class PropertyListConfiguration.DateSeparatorParser
java.lang.Object
org.apache.commons.configuration2.plist.PropertyListConfiguration.DateComponentParser
org.apache.commons.configuration2.plist.PropertyListConfiguration.DateSeparatorParser
- Enclosing class:
PropertyListConfiguration
private static final class PropertyListConfiguration.DateSeparatorParser
extends PropertyListConfiguration.DateComponentParser
A specialized date component parser implementation that deals with separator characters.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofDateSeparatorParserand sets the separator string. -
Method Summary
Modifier and TypeMethodDescriptionvoidformatComponent(StringBuilder buf, Calendar cal) Formats a date component.intparseComponent(String s, int index, Calendar cal) Parses a component from the given input string.Methods inherited from class org.apache.commons.configuration2.plist.PropertyListConfiguration.DateComponentParser
checkLength, padNum
-
Field Details
-
separator
Stores the separator.
-
-
Constructor Details
-
DateSeparatorParser
Creates a new instance ofDateSeparatorParserand sets the separator string.- Parameters:
sep- the separator string
-
-
Method Details
-
formatComponent
Description copied from class:PropertyListConfiguration.DateComponentParserFormats a date component. This method is used for converting a date in its internal representation into a string literal.- Specified by:
formatComponentin classPropertyListConfiguration.DateComponentParser- Parameters:
buf- the target buffercal- the calendar with the current date
-
parseComponent
Description copied from class:PropertyListConfiguration.DateComponentParserParses a component from the given input string.- Specified by:
parseComponentin classPropertyListConfiguration.DateComponentParser- Parameters:
s- the string to be parsedindex- the current parsing positioncal- the calendar where to store the result- Returns:
- the length of the processed component
- Throws:
ParseException- if the component cannot be extracted
-