Class InternalPrinterDateTimePrinter

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.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.
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalPrinterDateTimePrinter

        private InternalPrinterDateTimePrinter​(InternalPrinter underlying)
    • Method Detail

      • printTo

        public void printTo​(java.lang.StringBuffer buf,
                            long instant,
                            Chronology chrono,
                            int displayOffset,
                            DateTimeZone displayZone,
                            java.util.Locale locale)
        Description copied from interface: DateTimePrinter
        Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.
        Specified by:
        printTo in interface DateTimePrinter
        Parameters:
        buf - formatted instant is appended to this buffer, not null
        instant - millis since 1970-01-01T00:00:00Z
        chrono - the chronology to use, not null
        displayOffset - if a time zone offset is printed, force it to use this millisecond value
        displayZone - the time zone to use, null means local time
        locale - the locale to use, null means default locale
      • printTo

        public void printTo​(java.io.Writer out,
                            long instant,
                            Chronology chrono,
                            int displayOffset,
                            DateTimeZone displayZone,
                            java.util.Locale locale)
                     throws java.io.IOException
        Description copied from interface: DateTimePrinter
        Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.
        Specified by:
        printTo in interface DateTimePrinter
        Parameters:
        out - formatted instant is written out, not null
        instant - millis since 1970-01-01T00:00:00Z
        chrono - the chronology to use, not null
        displayOffset - if a time zone offset is printed, force it to use this millisecond value
        displayZone - the time zone to use, null means local time
        locale - the locale to use, null means default locale
        Throws:
        java.io.IOException
      • printTo

        public void printTo​(java.lang.Appendable appendable,
                            long instant,
                            Chronology chrono,
                            int displayOffset,
                            DateTimeZone displayZone,
                            java.util.Locale locale)
                     throws java.io.IOException
        Description copied from interface: InternalPrinter
        Prints an instant from milliseconds since 1970-01-01T00:00:00Z, using the given Chronology.
        Specified by:
        printTo in interface InternalPrinter
        Parameters:
        appendable - formatted instant is appended to, not null
        instant - millis since 1970-01-01T00:00:00Z
        chrono - the chronology to use, not null
        displayOffset - if a time zone offset is printed, force it to use this millisecond value
        displayZone - the time zone to use, null means local time
        locale - the locale to use, null means default locale
        Throws:
        java.io.IOException
      • printTo

        public void printTo​(java.lang.StringBuffer buf,
                            ReadablePartial partial,
                            java.util.Locale locale)
        Description copied from interface: DateTimePrinter
        Prints a ReadablePartial.
        Specified by:
        printTo in interface DateTimePrinter
        Parameters:
        buf - formatted partial is appended to this buffer, not null
        partial - partial to format, not null
        locale - the locale to use, null means default locale
      • printTo

        public void printTo​(java.io.Writer out,
                            ReadablePartial partial,
                            java.util.Locale locale)
                     throws java.io.IOException
        Description copied from interface: DateTimePrinter
        Prints a ReadablePartial.
        Specified by:
        printTo in interface DateTimePrinter
        Parameters:
        out - formatted partial is written out, not null
        partial - partial to format, not null
        locale - the locale to use, null means default locale
        Throws:
        java.io.IOException
      • printTo

        public void printTo​(java.lang.Appendable appendable,
                            ReadablePartial partial,
                            java.util.Locale locale)
                     throws java.io.IOException
        Description copied from interface: InternalPrinter
        Prints a ReadablePartial.
        Specified by:
        printTo in interface InternalPrinter
        Parameters:
        appendable - formatted instant is appended to, not null
        partial - partial to format, not null
        locale - the locale to use, null means default locale
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object