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()
DateTimePrinter
estimatePrintedLength
in interface DateTimePrinter
estimatePrintedLength
in interface InternalPrinter
public void printTo(java.lang.StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale)
DateTimePrinter
printTo
in interface DateTimePrinter
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 localepublic void printTo(java.io.Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, java.util.Locale locale) throws java.io.IOException
DateTimePrinter
printTo
in interface DateTimePrinter
out
- 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.IOException
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.StringBuffer buf, ReadablePartial partial, java.util.Locale locale)
DateTimePrinter
printTo
in interface DateTimePrinter
buf
- 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
DateTimePrinter
printTo
in interface DateTimePrinter
out
- formatted partial is written out, not nullpartial
- partial to format, not nulllocale
- 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
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object