class DateTimePrinterInternalPrinter extends java.lang.Object implements InternalPrinter
Modifier and Type | Field and Description |
---|---|
private DateTimePrinter |
underlying |
Modifier | Constructor and Description |
---|---|
private |
DateTimePrinterInternalPrinter(DateTimePrinter underlying) |
Modifier and Type | Method and Description |
---|---|
int |
estimatePrintedLength()
Returns the expected maximum number of characters produced.
|
(package private) DateTimePrinter |
getUnderlying() |
(package private) static InternalPrinter |
of(DateTimePrinter underlying) |
void |
printTo(java.lang.Appendable appendable,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale)
Prints an instant from milliseconds since 1970-01-01T00:00:00Z,
using the given Chronology.
|
void |
printTo(java.lang.Appendable appendable,
ReadablePartial partial,
java.util.Locale locale)
Prints a ReadablePartial.
|
private final DateTimePrinter underlying
private DateTimePrinterInternalPrinter(DateTimePrinter underlying)
static InternalPrinter of(DateTimePrinter underlying)
DateTimePrinter getUnderlying()
public int estimatePrintedLength()
InternalPrinter
estimatePrintedLength
in interface InternalPrinter
public void printTo(java.lang.Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale) throws java.io.IOException
InternalPrinter
printTo
in interface InternalPrinter
appendable
- formatted instant is appended to, 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 localejava.io.IOException
public void printTo(java.lang.Appendable appendable, ReadablePartial partial, java.util.Locale locale) throws java.io.IOException
InternalPrinter
printTo
in interface InternalPrinter
appendable
- formatted instant is appended to, not nullpartial
- partial to format, not nulllocale
- the locale to use, null means default localejava.io.IOException