org.joda.time.format
Interface DateTimePrinter
public interface DateTimePrinter
- Brian S O'Neill
- Stephen Colebourne
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.
|
estimatePrintedLength
public int estimatePrintedLength()
Returns the expected maximum number of characters produced.
The actual amount should rarely exceed this estimate.
printTo
public 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.
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 locale
printTo
public void printTo(StringBuffer buf,
ReadablePartial partial,
Locale locale)
Prints a ReadablePartial.
buf
- formatted partial is appended to this buffer, not nullpartial
- partial to format, not nulllocale
- the locale to use, null means default locale
printTo
public void printTo(Writer out,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
Locale locale)
throws IOException
Prints an instant from milliseconds since 1970-01-01T00:00:00Z,
using the given Chronology.
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
printTo
public void printTo(Writer out,
ReadablePartial partial,
Locale locale)
throws IOException
Prints a ReadablePartial.
out
- formatted partial is written out, not nullpartial
- partial to format, not nulllocale
- the locale to use, null means default locale
Copyright (c) 2001-2006 - Joda.org