(
CharSequence text,
Locale locale
)
| 610 | * @throws ParseException if parsing fails |
| 611 | */ |
| 612 | public static SolarTerm parse( |
| 613 | CharSequence text, |
| 614 | Locale locale |
| 615 | ) throws ParseException { |
| 616 | |
| 617 | SolarTerm st = parse(text, locale, new ParsePosition(0)); |
| 618 | |
| 619 | if (st == null) { |
| 620 | throw new ParseException("Cannot parse: " + text, 0); |
| 621 | } else { |
| 622 | return st; |
| 623 | } |
| 624 | |
| 625 | } |
| 626 | |
| 627 | // also called by EastAsianST |
| 628 | static SolarTerm parse( |