|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateTimePrinter
Strategy for printing a calendrical to an appendable.
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.
This interface must be implemented with care to ensure other classes in the framework operate correctly. All implementations that can be instantiated must be final, immutable and thread-safe.
The context is not a thread-safe object and a new instance will be created for each print that occurs. The context must not be stored in an instance variable or shared with any other threads.
Method Summary | |
---|---|
boolean |
print(DateTimePrintContext context,
java.lang.StringBuilder buf)
Prints the calendrical object to the buffer. |
Method Detail |
---|
boolean print(DateTimePrintContext context, java.lang.StringBuilder buf)
The context holds information to use during the print. It also contains the calendrical information to be printed.
The buffer must not be mutated beyond the content controlled by the implementation.
context
- the context to print using, not nullbuf
- the buffer to append to, not null
CalendricalException
- if the calendrical cannot be printed successfully
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |