|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.DefaultSplitCharacter
public class DefaultSplitCharacter
The default class that is used to determine whether or not a character is a split character.
You can add an array of characters or a single character on which iText should split the chunk. If custom characters have been set, iText will ignore the default characters this class uses to split chunks.
Field Summary | |
---|---|
protected char[] |
characters
|
static SplitCharacter |
DEFAULT
An instance of the default SplitCharacter. |
Constructor Summary | |
---|---|
DefaultSplitCharacter()
Default constructor, has no custom characters to check. |
|
DefaultSplitCharacter(char character)
Constructor with one splittable character. |
|
DefaultSplitCharacter(char[] characters)
Constructor with an array of splittable characters |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SplitCharacter DEFAULT
protected char[] characters
Constructor Detail |
---|
public DefaultSplitCharacter()
public DefaultSplitCharacter(char character)
character
- charpublic DefaultSplitCharacter(char[] characters)
characters
- char[]Method Detail |
---|
public boolean isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)
Checks if a character can be used to split a PdfString
.
The default behavior is that every character less than or equal to SPACE, the character '-' and some specific unicode ranges are 'splitCharacters'.
If custom splittable characters are set using the specified constructors, then this class will ignore the default characters described in the previous paragraph.
isSplitCharacter
in interface SplitCharacter
start
- start position in the arraycurrent
- current position in the arrayend
- end position in the arrayck
- chunk arraycc
- the character array that has to be checked
true
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 arrayck
- chunk arraycc
- the character array that has to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |