public class ParseLocalDateTime extends AbstractTemporalAccessorParsingProcessor<LocalDateTime>
DateTimeFormatter
- formats by pattern and styleDateTimeFormatter
- ISO 8601 formatsDateTimeFormatterBuilder
- complex formats created via method
callsnext
Constructor and Description |
---|
ParseLocalDateTime()
Constructs a new ParseLocalDateTime processor, which parses a
String as a LocalDateTime, using
LocalDateTime.parse(CharSequence) . |
ParseLocalDateTime(CellProcessor next)
Constructs a new ParseLocalDateTime processor, which parses a
String as a LocalDateTime, then calls the next processor in the
chain.
|
ParseLocalDateTime(DateTimeFormatter formatter)
Constructs a new ParseLocalDateTime processor, which parses a
String as a LocalDateTime using the supplied formatter.
|
ParseLocalDateTime(DateTimeFormatter formatter,
CellProcessor next)
Constructs a new ParseLocalDateTime processor, which parses a
String as a LocalDateTime using the supplied formatter, then calls
the next processor in the chain.
|
Modifier and Type | Method and Description |
---|---|
protected LocalDateTime |
parse(String string)
Parses the String into the appropriate
TemporalAccessor type. |
protected LocalDateTime |
parse(String string,
DateTimeFormatter formatter)
Parses the String into the appropriate
TemporalAccessor type, using the supplied
formatter. |
execute
toString, validateInputNotNull
public ParseLocalDateTime()
LocalDateTime.parse(CharSequence)
.public ParseLocalDateTime(CellProcessor next)
next
- the next processor in the chainNullPointerException
- if next is nullpublic ParseLocalDateTime(DateTimeFormatter formatter)
formatter
- the formatter used for parsingNullPointerException
- if formatter is nullpublic ParseLocalDateTime(DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter used for parsingnext
- the next processor in the chainNullPointerException
- if formatter or next is nullprotected LocalDateTime parse(String string)
TemporalAccessor
type.parse
in class AbstractTemporalAccessorParsingProcessor<LocalDateTime>
string
- the string to parseTemporalAccessor
typeprotected LocalDateTime parse(String string, DateTimeFormatter formatter)
TemporalAccessor
type, using the supplied
formatter.parse
in class AbstractTemporalAccessorParsingProcessor<LocalDateTime>
string
- the string to parseformatter
- the formatter to useTemporalAccessor
typeCopyright © 2007–2015 Super CSV. All rights reserved.