Package org.xhtmlrenderer.layout.breaker
Class UrlAwareLineBreakIterator
- java.lang.Object
-
- java.text.BreakIterator
-
- org.xhtmlrenderer.layout.breaker.UrlAwareLineBreakIterator
-
- All Implemented Interfaces:
Cloneable
@ParametersAreNonnullByDefault public class UrlAwareLineBreakIterator extends BreakIterator
BreakIterator implementation that improves line breaking for URLs. Break points are supported before path fragments.
-
-
Field Summary
-
Fields inherited from class java.text.BreakIterator
DONE
-
-
Constructor Summary
Constructors Constructor Description UrlAwareLineBreakIterator(String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcurrent()intfirst()intfollowing(int offset)CharacterIteratorgetText()booleanisBoundary(int offset)intlast()intnext()intnext(int n)intpreceding(int offset)intprevious()voidsetText(String newText)voidsetText(CharacterIterator newText)-
Methods inherited from class java.text.BreakIterator
clone, getAvailableLocales, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getSentenceInstance, getSentenceInstance, getWordInstance, getWordInstance
-
-
-
-
Constructor Detail
-
UrlAwareLineBreakIterator
public UrlAwareLineBreakIterator(String text)
-
-
Method Detail
-
preceding
public int preceding(int offset)
- Overrides:
precedingin classBreakIterator
-
last
public int last()
- Specified by:
lastin classBreakIterator
-
previous
public int previous()
- Specified by:
previousin classBreakIterator
-
next
public int next()
- Specified by:
nextin classBreakIterator
-
next
public int next(int n)
- Specified by:
nextin classBreakIterator
-
isBoundary
public boolean isBoundary(int offset)
- Overrides:
isBoundaryin classBreakIterator
-
following
public int following(int offset)
- Specified by:
followingin classBreakIterator
-
first
public int first()
- Specified by:
firstin classBreakIterator
-
setText
public void setText(CharacterIterator newText)
- Specified by:
setTextin classBreakIterator
-
current
public int current()
- Specified by:
currentin classBreakIterator
-
getText
public CharacterIterator getText()
- Specified by:
getTextin classBreakIterator
-
setText
public final void setText(String newText)
- Overrides:
setTextin classBreakIterator
-
-