public class FmtLocalDate extends AbstractJodaFormattingProcessor<LocalDate>
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 |
---|
FmtLocalDate()
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String.
|
FmtLocalDate(CellProcessor next)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String, then calls the next processor in the chain.
|
FmtLocalDate(DateTimeFormatter formatter)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String using the supplied formatter.
|
FmtLocalDate(DateTimeFormatter formatter,
CellProcessor next)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String using the supplied formatter, then calls the next
processor in the chain.
|
FmtLocalDate(String pattern)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String using the supplied pattern and the default locale.
|
FmtLocalDate(String pattern,
CellProcessor next)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String using the supplied pattern and the default locale,
then calls the next processor in the chain.
|
FmtLocalDate(String pattern,
Locale locale)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate as a String using the supplied pattern and the locale.
|
FmtLocalDate(String pattern,
Locale locale,
CellProcessor next)
Constructs a new FmtLocalDate processor, which formats a Joda
LocalDate 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(LocalDate jodaType)
Formats the Joda type as a String using the default pattern and locale.
|
protected String |
format(LocalDate jodaType,
DateTimeFormatter formatter)
Formats the Joda type as a String using a DateTimeFormatter.
|
protected String |
format(LocalDate jodaType,
String pattern,
Locale locale)
Formats the Joda type as a String using the supplied pattern and
(optional) locale.
|
execute
toString, validateInputNotNull
public FmtLocalDate()
public FmtLocalDate(CellProcessor next)
next
- next processor in the chainNullPointerException
- if next is nullpublic FmtLocalDate(DateTimeFormatter formatter)
formatter
- the formatter to useNullPointerException
- if formatter is nullpublic FmtLocalDate(DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter to usenext
- the next processor in the chainNullPointerException
- if formatter or next is nullpublic FmtLocalDate(String pattern)
pattern
- the pattern to useNullPointerException
- if pattern is nullpublic FmtLocalDate(String pattern, CellProcessor next)
pattern
- the pattern to usenext
- the next processor in the chainNullPointerException
- if pattern or next is nullpublic FmtLocalDate(String pattern, Locale locale)
pattern
- the pattern to uselocale
- the locale to use (default used if null)NullPointerException
- if pattern is nullpublic FmtLocalDate(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(LocalDate jodaType, DateTimeFormatter formatter)
format
in class AbstractJodaFormattingProcessor<LocalDate>
jodaType
- the Joda type to formatformatter
- the formatter to useprotected String format(LocalDate jodaType, String pattern, Locale locale)
format
in class AbstractJodaFormattingProcessor<LocalDate>
jodaType
- the Joda type to formatpattern
- the pattern to uselocale
- the (optional) localeprotected String format(LocalDate jodaType)
format
in class AbstractJodaFormattingProcessor<LocalDate>
jodaType
- the Joda type to formatCopyright © 2007–2015 Super CSV. All rights reserved.