org.joda.time.format
Interface PeriodPrinter
public interface PeriodPrinter
- Brian S O'Neill
- Stephen Colebourne
calculatePrintedLength
public int calculatePrintedLength(ReadablePeriod period,
Locale locale) Returns the exact number of characters produced for the given period.
period - the period to uselocale - the locale to use
countFieldsToPrint
public int countFieldsToPrint(ReadablePeriod period,
int stopAt,
Locale locale) Returns the amount of fields from the given period that this printer
will print.
period - the period to usestopAt - stop counting at this value, enter a number ≥ 256 to count alllocale - the locale to use
printTo
public void printTo(StringBuffer buf,
ReadablePeriod period,
Locale locale) Prints a ReadablePeriod to a StringBuffer.
buf - the formatted period is appended to this bufferperiod - the period to formatlocale - the locale to use
printTo
public void printTo(Writer out,
ReadablePeriod period,
Locale locale)
throws IOException Prints a ReadablePeriod to a Writer.
out - the formatted period is written outperiod - the period to formatlocale - the locale to use
Copyright (c) 2001-2006 - Joda.org