public void printTo(StringBuffer buf, ReadablePartial partial, Locale locale) { try { underlying.printTo(buf, partial, locale); } catch (IOException ex) { // StringBuffer does not throw IOException } }
public void printTo(StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) { try { underlying.printTo(buf, instant, chrono, displayOffset, displayZone, locale); } catch (IOException ex) { // StringBuffer does not throw IOException } }
public void printTo(StringBuffer buf, ReadablePartial partial, Locale locale) { try { underlying.printTo(buf, partial, locale); } catch (IOException ex) { // StringBuffer does not throw IOException } }
public void printTo(Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { underlying.printTo(out, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { underlying.printTo(appendable, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(StringBuffer buf, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) { try { underlying.printTo(buf, instant, chrono, displayOffset, displayZone, locale); } catch (IOException ex) { // StringBuffer does not throw IOException } }
public void printTo(Writer out, ReadablePartial partial, Locale locale) throws IOException { underlying.printTo(out, partial, locale); }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { underlying.printTo(appendable, partial, locale); }
public void printTo(Writer out, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { underlying.printTo(out, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { underlying.printTo(appendable, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { underlying.printTo(appendable, partial, locale); }
public void printTo(Writer out, ReadablePartial partial, Locale locale) throws IOException { underlying.printTo(out, partial, locale); }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { InternalPrinter[] elements = iPrinters; if (elements == null) { throw new UnsupportedOperationException(); } if (locale == null) { // Guard against default locale changing concurrently. locale = Locale.getDefault(); } int len = elements.length; for (int i=0; i<len; i++) { elements[i].printTo(appendable, partial, locale); } }
public void printTo( Appendable appendable, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { InternalPrinter[] elements = iPrinters; if (elements == null) { throw new UnsupportedOperationException(); } if (locale == null) { // Guard against default locale changing concurrently. locale = Locale.getDefault(); } int len = elements.length; for (int i = 0; i < len; i++) { elements[i].printTo(appendable, instant, chrono, displayOffset, displayZone, locale); } }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { InternalPrinter[] elements = iPrinters; if (elements == null) { throw new UnsupportedOperationException(); } if (locale == null) { // Guard against default locale changing concurrently. locale = Locale.getDefault(); } int len = elements.length; for (int i=0; i<len; i++) { elements[i].printTo(appendable, partial, locale); } }
public void printTo( Appendable appenadble, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { InternalPrinter p = getFormatter(locale).getPrinter0(); p.printTo(appenadble, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { InternalPrinter p = getFormatter(locale).getPrinter0(); p.printTo(appendable, partial, locale); }
public void printTo( Appendable appenadble, long instant, Chronology chrono, int displayOffset, DateTimeZone displayZone, Locale locale) throws IOException { InternalPrinter p = getFormatter(locale).getPrinter0(); p.printTo(appenadble, instant, chrono, displayOffset, displayZone, locale); }
public void printTo(Appendable appendable, ReadablePartial partial, Locale locale) throws IOException { InternalPrinter p = getFormatter(locale).getPrinter0(); p.printTo(appendable, partial, locale); }
private void printTo(Appendable appendable, long instant, Chronology chrono) throws IOException { InternalPrinter printer = requirePrinter(); chrono = selectChronology(chrono); // Shift instant into local time (UTC) to avoid excessive offset // calculations when printing multiple fields in a composite printer. DateTimeZone zone = chrono.getZone(); int offset = zone.getOffset(instant); long adjustedInstant = instant + offset; if ((instant ^ adjustedInstant) < 0 && (instant ^ offset) >= 0) { // Time zone offset overflow, so revert to UTC. zone = DateTimeZone.UTC; offset = 0; adjustedInstant = instant; } printer.printTo(appendable, adjustedInstant, chrono.withUTC(), offset, zone, iLocale); }