Class NameAbbreviator.PatternAbbreviatorFragment
- java.lang.Object
-
- org.apache.logging.log4j.core.pattern.NameAbbreviator.PatternAbbreviatorFragment
-
- Enclosing class:
- NameAbbreviator
private static class NameAbbreviator.PatternAbbreviatorFragment extends java.lang.Object
Fragment of an pattern abbreviator.
-
-
Constructor Summary
Constructors Constructor Description PatternAbbreviatorFragment(int charCount, char ellipsis)
Creates a PatternAbbreviatorFragment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
abbreviate(java.lang.StringBuilder buf, int startPos)
Abbreviate element of name.
-
-
-
Constructor Detail
-
PatternAbbreviatorFragment
public PatternAbbreviatorFragment(int charCount, char ellipsis)
Creates a PatternAbbreviatorFragment.- Parameters:
charCount
- number of initial characters to preserve.ellipsis
- character to represent elimination of characters, '\0' if no ellipsis is desired.
-
-