Method Summary |
|
public DateTimeFormatterBuilder | append(DateTimeFormatter formatter) Appends another formatter. |
public DateTimeFormatterBuilder | append(DateTimePrinter printer) Appends just a printer. |
public DateTimeFormatterBuilder | append(DateTimeParser parser) Appends just a parser. |
public DateTimeFormatterBuilder | append(DateTimePrinter printer, DateTimeParser parser) Appends a printer/parser pair. |
public DateTimeFormatterBuilder | append(DateTimePrinter printer, DateTimeParser[] parsers) Appends a printer and a set of matching parsers. |
public DateTimeFormatterBuilder | appendCenturyOfEra(int minDigits, int maxDigits) Instructs the printer to emit a numeric century of era field. |
public DateTimeFormatterBuilder | appendClockhourOfDay(int minDigits) Instructs the printer to emit a numeric clockhourOfDay field. |
public DateTimeFormatterBuilder | appendClockhourOfHalfday(int minDigits) Instructs the printer to emit a numeric clockhourOfHalfday field. |
public DateTimeFormatterBuilder | appendDayOfMonth(int minDigits) Instructs the printer to emit a numeric dayOfMonth field. |
public DateTimeFormatterBuilder | appendDayOfWeek(int minDigits) Instructs the printer to emit a numeric dayOfWeek field. |
public DateTimeFormatterBuilder | appendDayOfWeekShortText() Instructs the printer to emit a short locale-specific dayOfWeek
text. |
public DateTimeFormatterBuilder | appendDayOfWeekText() Instructs the printer to emit a locale-specific dayOfWeek text. |
public DateTimeFormatterBuilder | appendDayOfYear(int minDigits) Instructs the printer to emit a numeric dayOfYear field. |
public DateTimeFormatterBuilder | appendDecimal(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a field value as a decimal number, and the
parser to expect an unsigned decimal number. |
public DateTimeFormatterBuilder | appendEraText() Instructs the printer to emit a locale-specific era text (BC/AD), and
the parser to expect it. |
public DateTimeFormatterBuilder | appendFixedDecimal(DateTimeFieldType fieldType, int numDigits) Instructs the printer to emit a field value as a fixed-width decimal
number (smaller numbers will be left-padded with zeros), and the parser
to expect an unsigned decimal number with the same fixed width. |
public DateTimeFormatterBuilder | appendFixedSignedDecimal(DateTimeFieldType fieldType, int numDigits) Instructs the printer to emit a field value as a fixed-width decimal
number (smaller numbers will be left-padded with zeros), and the parser
to expect an signed decimal number with the same fixed width. |
public DateTimeFormatterBuilder | appendFraction(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a remainder of time as a decimal fraction,
sans decimal point. |
public DateTimeFormatterBuilder | appendFractionOfDay(int minDigits, int maxDigits) |
public DateTimeFormatterBuilder | appendFractionOfHour(int minDigits, int maxDigits) |
public DateTimeFormatterBuilder | appendFractionOfMinute(int minDigits, int maxDigits) |
public DateTimeFormatterBuilder | appendFractionOfSecond(int minDigits, int maxDigits) |
public DateTimeFormatterBuilder | appendHalfdayOfDayText() Instructs the printer to emit a locale-specific AM/PM text, and the
parser to expect it. |
public DateTimeFormatterBuilder | appendHourOfDay(int minDigits) Instructs the printer to emit a numeric hourOfDay field. |
public DateTimeFormatterBuilder | appendHourOfHalfday(int minDigits) Instructs the printer to emit a numeric hourOfHalfday field. |
public DateTimeFormatterBuilder | appendLiteral(char c) Instructs the printer to emit a specific character, and the parser to
expect it. |
public DateTimeFormatterBuilder | appendLiteral(String text) Instructs the printer to emit specific text, and the parser to expect
it. |
public DateTimeFormatterBuilder | appendMillisOfDay(int minDigits) Instructs the printer to emit a numeric millisOfDay field. |
public DateTimeFormatterBuilder | appendMillisOfSecond(int minDigits) Instructs the printer to emit a numeric millisOfSecond field. |
public DateTimeFormatterBuilder | appendMinuteOfDay(int minDigits) Instructs the printer to emit a numeric minuteOfDay field. |
public DateTimeFormatterBuilder | appendMinuteOfHour(int minDigits) Instructs the printer to emit a numeric minuteOfHour field. |
public DateTimeFormatterBuilder | appendMonthOfYear(int minDigits) Instructs the printer to emit a numeric monthOfYear field. |
public DateTimeFormatterBuilder | appendMonthOfYearShortText() Instructs the printer to emit a locale-specific monthOfYear text. |
public DateTimeFormatterBuilder | appendMonthOfYearText() Instructs the printer to emit a short locale-specific monthOfYear
text. |
public DateTimeFormatterBuilder | appendOptional(DateTimeParser parser) Appends just a parser element which is optional. |
public DateTimeFormatterBuilder | appendPattern(String pattern) Calls upon
DateTimeFormat to parse the pattern and append the
results into this builder. |
public DateTimeFormatterBuilder | appendSecondOfDay(int minDigits) Instructs the printer to emit a numeric secondOfDay field. |
public DateTimeFormatterBuilder | appendSecondOfMinute(int minDigits) Instructs the printer to emit a numeric secondOfMinute field. |
public DateTimeFormatterBuilder | appendShortText(DateTimeFieldType fieldType) Instructs the printer to emit a field value as short text, and the
parser to expect text. |
public DateTimeFormatterBuilder | appendSignedDecimal(DateTimeFieldType fieldType, int minDigits, int maxDigits) Instructs the printer to emit a field value as a decimal number, and the
parser to expect a signed decimal number. |
public DateTimeFormatterBuilder | appendText(DateTimeFieldType fieldType) Instructs the printer to emit a field value as text, and the
parser to expect text. |
public DateTimeFormatterBuilder | appendTimeZoneId() Instructs the printer to emit the identifier of the time zone. |
public DateTimeFormatterBuilder | appendTimeZoneName() Instructs the printer to emit a locale-specific time zone name. |
public DateTimeFormatterBuilder | appendTimeZoneOffset(String zeroOffsetText, boolean showSeparators, int minFields, int maxFields) Instructs the printer to emit text and numbers to display time zone
offset from UTC. |
public DateTimeFormatterBuilder | appendTimeZoneShortName() Instructs the printer to emit a short locale-specific time zone
name. |
public DateTimeFormatterBuilder | appendTwoDigitWeekyear(int pivot) Instructs the printer to emit a numeric weekyear field which always prints
and parses two digits. |
public DateTimeFormatterBuilder | appendTwoDigitWeekyear(int pivot, boolean lenientParse) Instructs the printer to emit a numeric weekyear field which always prints
two digits. |
public DateTimeFormatterBuilder | appendTwoDigitYear(int pivot) Instructs the printer to emit a numeric year field which always prints
and parses two digits. |
public DateTimeFormatterBuilder | appendTwoDigitYear(int pivot, boolean lenientParse) Instructs the printer to emit a numeric year field which always prints
two digits. |
static void | appendUnknownString(StringBuffer buf, int len) |
public DateTimeFormatterBuilder | appendWeekOfWeekyear(int minDigits) Instructs the printer to emit a numeric weekOfWeekyear field. |
public DateTimeFormatterBuilder | appendWeekyear(int minDigits, int maxDigits) Instructs the printer to emit a numeric weekyear field. |
public DateTimeFormatterBuilder | appendYear(int minDigits, int maxDigits) Instructs the printer to emit a numeric year field. |
public DateTimeFormatterBuilder | appendYearOfCentury(int minDigits, int maxDigits) Instructs the printer to emit a numeric year of century field. |
public DateTimeFormatterBuilder | appendYearOfEra(int minDigits, int maxDigits) Instructs the printer to emit a numeric yearOfEra field. |
public boolean | canBuildFormatter() Returns true if toFormatter can be called without throwing an
UnsupportedOperationException. |
public boolean | canBuildParser() Returns true if toParser can be called without throwing an
UnsupportedOperationException. |
public boolean | canBuildPrinter() Returns true if toPrinter can be called without throwing an
UnsupportedOperationException. |
public void | clear() Clears out all the appended elements, allowing this builder to be
reused. |
static void | printUnknownString(Writer out, int len) |
public DateTimeFormatter | toFormatter() Constructs a DateTimeFormatter using all the appended elements. |
public DateTimeParser | toParser() Internal method to create a DateTimeParser instance using all the
appended elements. |
public DateTimePrinter | toPrinter() Internal method to create a DateTimePrinter instance using all the
appended elements. |