|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateTimePrinter
Internal interface for creating textual representations of datetimes.
Application users will rarely use this class directly. Instead, you
will use one of the factory classes to create a DateTimeFormatter
.
The factory classes are:
- DateTimeFormatterBuilder
- DateTimeFormat
- ISODateTimeFormat
DateTimeFormatterBuilder
,
DateTimeFormat
,
ISODateTimeFormat
Method Summary | |
---|---|
int |
estimatePrintedLength()
Returns the expected maximum number of characters produced. |
void |
printTo(StringBuffer buf,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology. |
void |
printTo(StringBuffer buf,
ReadablePartial partial,
Locale locale)
Prints a ReadablePartial. |
void |
printTo(Writer out,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology. |
void |
printTo(Writer out,
ReadablePartial partial,
Locale locale)
Prints a ReadablePartial. |
Method Detail |
---|
int estimatePrintedLength()
void printTo(StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale)
buf
- formatted instant is appended to this buffer, not nullinstant
- millis since 1970-01-01T00:00:00Zchrono
- the chronology to use, not nulldisplayOffset
- if a time zone offset is printed, force it to use
this millisecond valuedisplayZone
- the time zone to use, null means local timelocale
- the locale to use, null means default localevoid printTo(Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException
out
- formatted instant is written outinstant
- millis since 1970-01-01T00:00:00Zchrono
- the chronology to use, not nulldisplayOffset
- if a time zone offset is printed, force it to use
this millisecond valuedisplayZone
- the time zone to use, null means local timelocale
- the locale to use, null means default locale
IOException
void printTo(StringBuffer buf, ReadablePartial partial, Locale locale)
buf
- formatted partial is appended to this buffer, not nullpartial
- partial to format, not nulllocale
- the locale to use, null means default localevoid printTo(Writer out, ReadablePartial partial, Locale locale) throws IOException
out
- formatted partial is written out, not nullpartial
- partial to format, not nulllocale
- the locale to use, null means default locale
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |