@Deprecated public class DateStringFormatter extends Object implements Formatter
initialize(Iterable, FormatterConfig)
replaces parameters in FormatterConfig
, which
could surprise users.
This class can be replaced by DefaultFormatter
where FormatterConfig is initialized with a DateFormat set to DATE_FORMAT
. See
DateFormatSupplier.createSimpleFormatSupplier(String, java.util.TimeZone)
.
final DateFormatSupplier dfSupplier = DateFormatSupplier.createSimpleFormatSupplier(DateFormatSupplier.HUMAN_READABLE_FORMAT, TimeZone.getTimeZone("UTC")); final FormatterConfig config = new FormatterConfig().setPrintTimestamps(true).setDateFormatSupplier(dfSupplier);
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT
Deprecated.
|
Constructor and Description |
---|
DateStringFormatter()
Deprecated.
|
DateStringFormatter(TimeZone timeZone)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
void |
initialize(Iterable<Map.Entry<Key,Value>> scanner,
FormatterConfig config)
Deprecated.
|
String |
next()
Deprecated.
|
void |
remove()
Deprecated.
|
public static final String DATE_FORMAT
public DateStringFormatter()
public DateStringFormatter(TimeZone timeZone)
public void initialize(Iterable<Map.Entry<Key,Value>> scanner, FormatterConfig config)
initialize
in interface Formatter
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.