public static FSTextBreaker getCharacterBreakStream(String currentString, SharedContext sharedContext) { FSTextBreaker i = sharedContext.getCharacterBreaker(); i.setText(currentString); return i; }
while ( (current = breakIterator.next()) != BreakIterator.DONE) { String currentWord = text.substring(last, current); int wordWidth = getTextWidth(c, currentWord);
public static FSTextBreaker getLineBreakStream(String s, SharedContext shared) { FSTextBreaker i = shared.getLineBreaker(); i.setText(s); return i; } }