|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.util.WordBreakIterator
Behaves similiar to BreakIterator.getWordInstance() but handles line break delimeters as simple whitespaces.
This class is not synchronized.
Field Summary | |
static int |
DONE
A useful constant. |
Constructor Summary | |
WordBreakIterator(java.lang.String text)
Creates a new iterator. |
Method Summary | |
int |
getPosition()
Returns the current parsing position of this iterator. |
java.lang.String |
getText()
Returns the text to be broken up. |
int |
next()
Returns the next word boundary. |
int |
nextWithEnd()
Same like next(), but returns the End-Of-Text as if there was a linebreak added (Reader.readLine() compatible) |
int |
previous()
Returns the position of the previous break. |
void |
setPosition(int position)
Defines the current parse position for the word break iterator. |
void |
setText(java.lang.String text)
Sets the text to be broken up. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DONE
Constructor Detail |
public WordBreakIterator(java.lang.String text)
text
- the text to break.Method Detail |
public int next()
public int nextWithEnd()
public int previous()
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the text.public int getPosition()
public void setPosition(int position)
position
- the position.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |