public class DefaultSplitCharacter extends Object implements SplitCharacter
Modifier and Type | Field and Description |
---|---|
static SplitCharacter |
DEFAULT
An instance of the default SplitCharacter.
|
Constructor and Description |
---|
DefaultSplitCharacter() |
Modifier and Type | Method and Description |
---|---|
protected char |
getCurrentCharacter(int current,
char[] cc,
PdfChunk[] ck)
Returns the current character
|
boolean |
isSplitCharacter(int start,
int current,
int end,
char[] cc,
PdfChunk[] ck)
Checks if a character can be used to split a
PdfString . |
public static final SplitCharacter DEFAULT
public boolean isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)
PdfString
.
for the moment every character less than or equal to SPACE, the character '-' and some specific unicode ranges are 'splitCharacters'.
isSplitCharacter
in interface SplitCharacter
start
- start position in the arraycurrent
- current position in the arrayend
- end position in the arraycc
- the character array that has to be checkedck
- chunk arraytrue
if the character can be used to split a string, false
otherwiseprotected char getCurrentCharacter(int current, char[] cc, PdfChunk[] ck)
current
- current position in the arraycc
- the character array that has to be checkedck
- chunk arrayCopyright © 2018. All rights reserved.