Package com.openhtmltopdf.layout
Class UrlAwareLineBreakIterator
java.lang.Object
com.openhtmltopdf.layout.UrlAwareLineBreakIterator
- All Implemented Interfaces:
FSTextBreaker
BreakIterator implementation that improves line breaking for URLs. Break points are supported
before path fragments.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate UrlAwareLineBreakIterator.Rangeprivate final BreakIteratorprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidprivate intfindSlashInRange(UrlAwareLineBreakIterator.Range searchRange) private booleanintnext()voidprivate Stringprivate UrlAwareLineBreakIterator.RangetrimSearchRange(UrlAwareLineBreakIterator.Range searchRange)
-
Field Details
-
BREAKING_CHARS
- See Also:
-
delegate
-
text
-
currentRange
-
-
Constructor Details
-
UrlAwareLineBreakIterator
-
-
Method Details
-
next
public int next()- Specified by:
nextin interfaceFSTextBreaker
-
trimSearchRange
private UrlAwareLineBreakIterator.Range trimSearchRange(UrlAwareLineBreakIterator.Range searchRange) -
findSlashInRange
-
substring
-
checkNotAheadOfDelegate
private void checkNotAheadOfDelegate() -
isDelegateInSync
private boolean isDelegateInSync() -
advanceDelegate
private boolean advanceDelegate() -
setText
- Specified by:
setTextin interfaceFSTextBreaker
-