class InternalPrinterDateTimePrinter extends java.lang.Object implements DateTimePrinter, InternalPrinter
| Modifier and Type | Field and Description |
|---|---|
private InternalPrinter |
underlying |
| Modifier | Constructor and Description |
|---|---|
private |
InternalPrinterDateTimePrinter(InternalPrinter underlying) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
estimatePrintedLength()
Returns the expected maximum number of characters produced.
|
(package private) static DateTimePrinter |
of(InternalPrinter 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.
|
void |
printTo(java.lang.StringBuffer buf,
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.StringBuffer buf,
ReadablePartial partial,
java.util.Locale locale)
Prints a ReadablePartial.
|
void |
printTo(java.io.Writer out,
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.io.Writer out,
ReadablePartial partial,
java.util.Locale locale)
Prints a ReadablePartial.
|
private final InternalPrinter underlying
private InternalPrinterDateTimePrinter(InternalPrinter underlying)
static DateTimePrinter of(InternalPrinter underlying)
public int estimatePrintedLength()
DateTimePrinterestimatePrintedLength in interface DateTimePrinterestimatePrintedLength in interface InternalPrinterpublic void printTo(java.lang.StringBuffer buf,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale)
DateTimePrinterprintTo in interface DateTimePrinterbuf - 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 localepublic void printTo(java.io.Writer out,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale)
throws java.io.IOException
DateTimePrinterprintTo in interface DateTimePrinterout - formatted instant is written out, 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.IOExceptionpublic void printTo(java.lang.Appendable appendable,
long instant,
Chronology chrono,
int displayOffset,
DateTimeZone displayZone,
java.util.Locale locale)
throws java.io.IOException
InternalPrinterprintTo in interface InternalPrinterappendable - 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.IOExceptionpublic void printTo(java.lang.StringBuffer buf,
ReadablePartial partial,
java.util.Locale locale)
DateTimePrinterprintTo in interface DateTimePrinterbuf - formatted partial is appended to this buffer, not nullpartial - partial to format, not nulllocale - the locale to use, null means default localepublic void printTo(java.io.Writer out,
ReadablePartial partial,
java.util.Locale locale)
throws java.io.IOException
DateTimePrinterprintTo in interface DateTimePrinterout - formatted partial is written out, not nullpartial - partial to format, not nulllocale - the locale to use, null means default localejava.io.IOExceptionpublic void printTo(java.lang.Appendable appendable,
ReadablePartial partial,
java.util.Locale locale)
throws java.io.IOException
InternalPrinterprintTo in interface InternalPrinterappendable - formatted instant is appended to, not nullpartial - partial to format, not nulllocale - the locale to use, null means default localejava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object