Пример #1
0
  /**
   * Return a new instance of BreakIterator used to iterate line-breaks using given locale.
   *
   * @param where the given locale
   * @return a new instance of BreakIterator used to iterate line-breaks using given locale.
   */
  public static BreakIterator getLineInstance(Locale where) {
    if (where == null) {
      throw new NullPointerException();
    }

    return new RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator.getLineInstance(where));
  }
Пример #2
0
 /**
  * Return a new instance of BreakIterator used to iterate line-breaks using default locale.
  *
  * @return a new instance of BreakIterator used to iterate line-breaks using default locale.
  */
 public static BreakIterator getLineInstance() {
   return new RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator.getLineInstance());
 }