public class ParseLocalDate extends AbstractTemporalAccessorParsingProcessor<java.time.LocalDate>
next
Constructor and Description |
---|
ParseLocalDate()
Constructs a new ParseLocalDate processor,
which parses a String recognised by
LocalDate.parse(CharSequence)
as a LocalDate. |
ParseLocalDate(CellProcessor next)
Constructs a new ParseLocalDate processor,
which parses a String recognised by
LocalDate.parse(CharSequence)
as a LocalDate, then calls the next processor in the chain. |
ParseLocalDate(java.time.format.DateTimeFormatter formatter)
Constructs a new ParseLocalDate processor, which parses a String
as a LocalDate using the supplied formatter.
|
ParseLocalDate(java.time.format.DateTimeFormatter formatter,
CellProcessor next)
Constructs a new ParseLocalDate processor, which parses a String
as a LocalDate using the supplied formatter, then calls the next
processor in the chain.
|
Modifier and Type | Method and Description |
---|---|
protected java.time.LocalDate |
parse(String string)
Parses the String into the appropriate
TemporalAccessor type. |
protected java.time.LocalDate |
parse(String string,
java.time.format.DateTimeFormatter formatter)
Parses the String into the appropriate
TemporalAccessor type, using the supplied
formatter. |
execute
toString, validateInputNotNull
public ParseLocalDate()
LocalDate.parse(CharSequence)
as a LocalDate.public ParseLocalDate(CellProcessor next)
LocalDate.parse(CharSequence)
as a LocalDate, then calls the next processor in the chain.next
- the next processor in the chainNullPointerException
- if next is nullpublic ParseLocalDate(java.time.format.DateTimeFormatter formatter)
formatter
- the formatter used for parsingNullPointerException
- if formatter is nullpublic ParseLocalDate(java.time.format.DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter used for parsingnext
- the next processor in the chainNullPointerException
- if formatter or next is nullprotected java.time.LocalDate parse(String string)
TemporalAccessor
type.parse
in class AbstractTemporalAccessorParsingProcessor<java.time.LocalDate>
string
- the string to parseTemporalAccessor
typeprotected java.time.LocalDate parse(String string, java.time.format.DateTimeFormatter formatter)
TemporalAccessor
type, using the supplied
formatter.parse
in class AbstractTemporalAccessorParsingProcessor<java.time.LocalDate>
string
- the string to parseformatter
- the formatter to useTemporalAccessor
typeCopyright © 2007–2016 Super CSV. All rights reserved.