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 String
private UrlAwareLineBreakIterator.Range
private final BreakIterator
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
private int
findSlashInRange
(UrlAwareLineBreakIterator.Range searchRange) private boolean
int
next()
void
private String
private UrlAwareLineBreakIterator.Range
trimSearchRange
(UrlAwareLineBreakIterator.Range searchRange)
-
Field Details
-
BREAKING_CHARS
- See Also:
-
delegate
-
text
-
currentRange
-
-
Constructor Details
-
UrlAwareLineBreakIterator
-
-
Method Details
-
next
public int next()- Specified by:
next
in 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:
setText
in interfaceFSTextBreaker
-