|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.formatter.pattern.NameAbbreviator.PatternAbbreviatorFragment
Fragment of an pattern abbreviator.
| Field Summary | |
private int |
charCount
Count of initial characters of element to output. |
private char |
ellipsis
Character used to represent dropped characters. '\0' indicates no representation of dropped characters. |
| Constructor Summary | |
NameAbbreviator.PatternAbbreviatorFragment(int charCount,
char ellipsis)
Creates a PatternAbbreviatorFragment. |
|
| Method Summary | |
int |
abbreviate(java.lang.StringBuffer buf,
int startPos)
Abbreviate element of name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final int charCount
private final char ellipsis
| Constructor Detail |
public NameAbbreviator.PatternAbbreviatorFragment(int charCount,
char ellipsis)
charCount - number of initial characters to preserve.ellipsis - character to represent elimination of characters,
'\0' if no ellipsis is desired.| Method Detail |
public int abbreviate(java.lang.StringBuffer buf,
int startPos)
buf - buffer to receive element.startPos - starting index of name element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||