public interface DateTimePrinter
The printer may print any part, or the whole, of the input Calendrical. Typically, a complete print is constructed from a number of smaller units, each outputting a single field.
DateTimePrinter is an interface and must be implemented with care to ensure other classes in the framework operate correctly. All instantiable implementations must be final, immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrintDataAvailable(Calendrical calendrical)
Checks if the calendrical contains the data necessary to be printed.
|
void |
print(Calendrical calendrical,
Appendable appendable,
DateTimeFormatSymbols symbols)
Prints the calendrical object to the appendable.
|
void print(Calendrical calendrical, Appendable appendable, DateTimeFormatSymbols symbols) throws IOException
calendrical - the calendrical to print, not nullappendable - the appendable to add to, not nullsymbols - the formatting symbols to use, not nullCalendricalPrintException - if the date time cannot be printed successfullyIOException - if the append throws an exceptionboolean isPrintDataAvailable(Calendrical calendrical)
The implementation should not check the validity of the data, just whether there is sufficient data to attempt a print.
calendrical - the calendrical to check, not nullCopyright © 2025. All rights reserved.