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