|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.BreakIterator
java.text.RuleBasedBreakIterator
class RuleBasedBreakIterator
| Field Summary |
|---|
| Fields inherited from class java.text.BreakIterator |
|---|
DONE, wrapped |
| Constructor Summary | |
|---|---|
RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator iterator)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Create copy of this iterator, all status including current position is kept. |
int |
current()
Return this iterator's current position. |
boolean |
equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
int |
first()
Set this iterator's current position to the first boundary, and return this position. |
int |
following(int offset)
Set the position of the first boundary following the given offset, and return this position. |
CharacterIterator |
getText()
Return a CharacterIterator which represents the text being
analyzed. |
int |
hashCode()
Returns an integer hash code for the receiver. |
boolean |
isBoundary(int offset)
Return true if the given offset is a boundary position. |
int |
last()
Set this iterator's current position to the last boundary, and return this position. |
int |
next()
Set this iterator's current position to the next boundary after current position, and return this position. |
int |
next(int n)
Set this iterator's current position to the next boundary after the given position, and return this position. |
int |
preceding(int offset)
Return the position of last boundary precede the given offset, and set current position to returned value, or DONE if the given
offset specifies the starting position. |
int |
previous()
Set this iterator's current position to the previous boundary before current position, and return this position. |
void |
setText(CharacterIterator newText)
Set new text to be analyzed by given CharacterIterator. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.text.BreakIterator |
|---|
getAvailableLocales, getCharacterInstance, getCharacterInstance, getInt, getLineInstance, getLineInstance, getLong, getSentenceInstance, getSentenceInstance, getShort, getWordInstance, getWordInstance, setText |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator iterator)
| Method Detail |
|---|
public int current()
BreakIterator
current in class BreakIteratorpublic int first()
BreakIterator
first in class BreakIteratorpublic int following(int offset)
BreakIterator
IllegalArgumentException will be thrown if given offset is
invalid.
following in class BreakIteratoroffset - the given position to be searched for
public CharacterIterator getText()
BreakIteratorCharacterIterator which represents the text being
analyzed. Please note that the returned value is probably the internal
iterator used by this object, so that if the invoker want to modify the
status of the returned iterator, a clone operation at first is
recommended.
getText in class BreakIteratorCharacterIterator which represents the text
being analyzed.public int last()
BreakIterator
last in class BreakIteratorpublic int next()
BreakIteratorDONE if no
boundary found after current position.
next in class BreakIteratorpublic int next(int n)
BreakIteratorDONE if no
boundary found after the given position.
next in class BreakIteratorn - the given position.
public int previous()
BreakIteratorDONE if
no boundary found before current position.
previous in class BreakIteratorpublic void setText(CharacterIterator newText)
BreakIteratorCharacterIterator.
The position will be reset to the beginning of the new text, and other
status of this iterator will be kept.
setText in class BreakIteratornewText - the given CharacterIterator refer to the text
to be analyzedpublic boolean isBoundary(int offset)
BreakIterator
isBoundary in class BreakIteratoroffset - the given offset to check
public int preceding(int offset)
BreakIteratorDONE if the given
offset specifies the starting position.
IllegalArgumentException will be thrown if given offset is
invalid.
preceding in class BreakIteratoroffset - the given start position to be searched for
public boolean equals(Object o)
Object
equals in class Objecto - Object the object to compare with this object.
true if the object is the same as this
object false if it is different from this object.Object.hashCode()public String toString()
Object
toString in class Objectpublic int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in class ObjectObject.equals(java.lang.Object)public Object clone()
BreakIterator
clone in class BreakIterator
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||