Interface DateTimePrinter

    • Method Detail

      • print

        void print​(Calendrical calendrical,
                   java.lang.Appendable appendable,
                   DateTimeFormatSymbols symbols)
            throws java.io.IOException
        Prints the calendrical object to the appendable.
        Parameters:
        calendrical - the calendrical to print, not null
        appendable - the appendable to add to, not null
        symbols - the formatting symbols to use, not null
        Throws:
        CalendricalPrintException - if the date time cannot be printed successfully
        java.io.IOException - if the append throws an exception
      • isPrintDataAvailable

        boolean isPrintDataAvailable​(Calendrical calendrical)
        Checks if the calendrical contains the data necessary to be printed.

        The implementation should not check the validity of the data, just whether there is sufficient data to attempt a print.

        Parameters:
        calendrical - the calendrical to check, not null
        Returns:
        true if the calendrical can be printed, false if not