Methods Summary |
---|
public java.lang.Object | clone()
int cloneAddr = NativeBreakIterator.cloneImpl(this.addr);
RuleBasedBreakIterator rbbi =
new RuleBasedBreakIterator(cloneAddr, this.type);
rbbi.charIter = this.charIter;
return rbbi;
|
public int | current()
return NativeBreakIterator.currentImpl(this.addr);
|
public boolean | equals(java.lang.Object object)
if(object == null) {
return false;
}
if(!(object instanceof RuleBasedBreakIterator)) {
return false;
}
CharacterIterator iter = ((RuleBasedBreakIterator) object).charIter;
boolean result = this.type == ((RuleBasedBreakIterator) object).type;
return result && iter.equals(this.charIter);
|
protected void | finalize()
NativeBreakIterator.closeBreakIteratorImpl(this.addr);
|
public int | first()
return NativeBreakIterator.firstImpl(this.addr);
|
public int | following(int offset)
return NativeBreakIterator.followingImpl(this.addr, offset);
|
public java.text.CharacterIterator | getText()
int newLoc = NativeBreakIterator.currentImpl(this.addr);
this.charIter.setIndex(newLoc);
return this.charIter;
|
public boolean | isBoundary(int offset)
return NativeBreakIterator.isBoundaryImpl(this.addr, offset);
|
public int | last()
return NativeBreakIterator.lastImpl(this.addr);
|
public int | next()
return NativeBreakIterator.nextImpl(this.addr, 1);
|
public int | next(int n)
return NativeBreakIterator.nextImpl(this.addr, n);
|
public int | preceding(int offset)
return NativeBreakIterator.precedingImpl(this.addr, offset);
|
public int | previous()
return NativeBreakIterator.previousImpl(this.addr);
|
public void | setText(java.text.CharacterIterator newText)
this.charIter = newText;
StringBuilder sb = new StringBuilder();
char c = newText.first();
while(c != CharacterIterator.DONE) {
sb.append(c);
c = newText.next();
}
NativeBreakIterator.setTextImpl(this.addr, sb.toString());
|