- java.lang.Object
-
- com.itextpdf.text.pdf.DefaultSplitCharacter
-
- All Implemented Interfaces:
SplitCharacter
public class DefaultSplitCharacter extends java.lang.Object implements SplitCharacter
The default class that is used to determine whether or not a character is a split character. You can subclass this class to define your own split characters.- Since:
- 2.1.2
-
-
Field Summary
Fields Modifier and Type Field Description static SplitCharacterDEFAULTAn instance of the default SplitCharacter.
-
Constructor Summary
Constructors Constructor Description DefaultSplitCharacter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected chargetCurrentCharacter(int current, char[] cc, PdfChunk[] ck)Returns the current characterbooleanisSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)Checks if a character can be used to split aPdfString.
-
-
-
Field Detail
-
DEFAULT
public static final SplitCharacter DEFAULT
An instance of the default SplitCharacter.
-
-
Method Detail
-
isSplitCharacter
public boolean isSplitCharacter(int start, int current, int end, char[] cc, PdfChunk[] ck)Checks if a character can be used to split aPdfString.for the moment every character less than or equal to SPACE, the character '-' and some specific unicode ranges are 'splitCharacters'.
- Specified by:
isSplitCharacterin interfaceSplitCharacter- Parameters:
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 array- Returns:
trueif the character can be used to split a string,falseotherwise
-
getCurrentCharacter
protected char getCurrentCharacter(int current, char[] cc, PdfChunk[] ck)Returns the current character- Parameters:
current- current position in the arraycc- the character array that has to be checkedck- chunk array- Returns:
- the current character
-
-