Class NameAbbreviator.PatternAbbreviatorFragment
java.lang.Object
org.apache.logging.log4j.core.pattern.NameAbbreviator.PatternAbbreviatorFragment
- Enclosing class:
NameAbbreviator
Fragment of an pattern abbreviator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Count of initial characters of element to output.private final char
Character used to represent dropped characters.(package private) static final NameAbbreviator.PatternAbbreviatorFragment[]
-
Constructor Summary
ConstructorsConstructorDescriptionPatternAbbreviatorFragment
(int charCount, char ellipsis) Creates a PatternAbbreviatorFragment. -
Method Summary
Modifier and TypeMethodDescription(package private) int
abbreviate
(String input, int inputIndex, StringBuilder buf) Abbreviate element of name.toString()
-
Field Details
-
EMPTY_ARRAY
-
charCount
private final int charCountCount of initial characters of element to output. -
ellipsis
private final char ellipsisCharacter used to represent dropped characters. '\0' indicates no representation of dropped characters.
-
-
Constructor Details
-
PatternAbbreviatorFragment
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.
-
-
Method Details