public class FmtLocalDateTime extends AbstractJodaFormattingProcessor<LocalDateTime>
For constructors using DateTimeFormatter, refer to the following Joda classes:
DateTimeFormat
- formats by pattern and styleISODateTimeFormat
- ISO8601 formatsDateTimeFormatterBuilder
- complex formats created via method
calls
For constructors using date format Strings, refer to DateTimeFormat
for example formats.
next
Constructor and Description |
---|
FmtLocalDateTime()
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String.
|
FmtLocalDateTime(CellProcessor next)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String, then calls the next processor in the
chain.
|
FmtLocalDateTime(DateTimeFormatter formatter)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied formatter.
|
FmtLocalDateTime(DateTimeFormatter formatter,
CellProcessor next)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied formatter, then calls
the next processor in the chain.
|
FmtLocalDateTime(String pattern)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied pattern and the default
locale.
|
FmtLocalDateTime(String pattern,
CellProcessor next)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied pattern and the default
locale, then calls the next processor in the chain.
|
FmtLocalDateTime(String pattern,
Locale locale)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied pattern and the locale.
|
FmtLocalDateTime(String pattern,
Locale locale,
CellProcessor next)
Constructs a new FmtLocalDateTime processor, which formats a
Joda LocalDateTime as a String using the supplied pattern and the locale,
then calls the next processor in the chain.
|
Modifier and Type | Method and Description |
---|---|
protected String |
format(LocalDateTime jodaType)
Formats the Joda type as a String using the default pattern and locale.
|
protected String |
format(LocalDateTime jodaType,
DateTimeFormatter formatter)
Formats the Joda type as a String using a DateTimeFormatter.
|
protected String |
format(LocalDateTime jodaType,
String pattern,
Locale locale)
Formats the Joda type as a String using the supplied pattern and
(optional) locale.
|
execute
toString, validateInputNotNull
public FmtLocalDateTime()
public FmtLocalDateTime(CellProcessor next)
next
- next processor in the chainNullPointerException
- if next is nullpublic FmtLocalDateTime(DateTimeFormatter formatter)
formatter
- the formatter to useNullPointerException
- if formatter is nullpublic FmtLocalDateTime(DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter to usenext
- the next processor in the chainNullPointerException
- if formatter or next is nullpublic FmtLocalDateTime(String pattern)
pattern
- the pattern to useNullPointerException
- if pattern is nullpublic FmtLocalDateTime(String pattern, CellProcessor next)
pattern
- the pattern to usenext
- the next processor in the chainNullPointerException
- if pattern or next is nullpublic FmtLocalDateTime(String pattern, Locale locale)
pattern
- the pattern to uselocale
- the locale to use (default used if null)NullPointerException
- if pattern is nullpublic FmtLocalDateTime(String pattern, Locale locale, CellProcessor next)
pattern
- the pattern to uselocale
- the locale to use (default used if null)next
- the next processor in the chainNullPointerException
- if pattern or next is nullprotected String format(LocalDateTime jodaType, DateTimeFormatter formatter)
format
in class AbstractJodaFormattingProcessor<LocalDateTime>
jodaType
- the Joda type to formatformatter
- the formatter to useprotected String format(LocalDateTime jodaType, String pattern, Locale locale)
format
in class AbstractJodaFormattingProcessor<LocalDateTime>
jodaType
- the Joda type to formatpattern
- the pattern to uselocale
- the (optional) localeprotected String format(LocalDateTime jodaType)
format
in class AbstractJodaFormattingProcessor<LocalDateTime>
jodaType
- the Joda type to formatCopyright © 2007–2015 Super CSV. All rights reserved.