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