Top Fields Constructors Methods
ch.qos.logback.classic.pattern

public Class TargetLengthBasedClassNameAbbreviator2

extends Object
implements Abbreviator
Class Inheritance
All Implemented Interfaces
ch.qos.logback.classic.pattern.Abbreviator
Imports
ch.qos.logback.classic.ClassicConstants, ch.qos.logback.core.CoreConstants

Field Summary

Modifier and TypeField and Description
pack-priv final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
pack-priv static int

Returns:

the number of dots found
computeDotIndexes
(final String className, int[] dotArray)

Populate dotArray with the positions of the DOT character in className.

pack-priv void
computeLengthArray(final String className, int[] dotArray, int[] lengthArray, int dotCount)

pack-priv static void
printArray(String msg, int[] ia)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

targetLengthback to summary
pack-priv final int targetLength

Constructor Detail

TargetLengthBasedClassNameAbbreviator2back to summary
public TargetLengthBasedClassNameAbbreviator2(int targetLength)

Method Detail

abbreviateback to summary
public String abbreviate(String fqClassName)

Implements ch.qos.logback.classic.pattern.Abbreviator.abbreviate.

computeDotIndexesback to summary
pack-priv static int computeDotIndexes(final String className, int[] dotArray)

Populate dotArray with the positions of the DOT character in className. Leftmost dot is placed at index 0 of dotArray.

Returns:int

the number of dots found

computeLengthArrayback to summary
pack-priv void computeLengthArray(final String className, int[] dotArray, int[] lengthArray, int dotCount)
printArrayback to summary
pack-priv static void printArray(String msg, int[] ia)