org.x4juli.formatter.pattern
Class NameAbbreviator.MaxElementAbbreviator

java.lang.Object
  extended byorg.x4juli.formatter.pattern.NameAbbreviator
      extended byorg.x4juli.formatter.pattern.NameAbbreviator.MaxElementAbbreviator
Enclosing class:
NameAbbreviator

private static class NameAbbreviator.MaxElementAbbreviator
extends NameAbbreviator

Abbreviator that drops starting path elements.


Nested Class Summary
 
Nested classes inherited from class org.x4juli.formatter.pattern.NameAbbreviator
 
Field Summary
private  int count
          Maximum number of path elements to output.
 
Fields inherited from class org.x4juli.formatter.pattern.NameAbbreviator
 
Constructor Summary
NameAbbreviator.MaxElementAbbreviator(int count)
          Create new instance.
 
Method Summary
 void abbreviate(int nameStart, java.lang.StringBuffer buf)
          Abbreviate name.
 
Methods inherited from class org.x4juli.formatter.pattern.NameAbbreviator
getAbbreviator, getDefaultAbbreviator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private final int count
Maximum number of path elements to output.

Constructor Detail

NameAbbreviator.MaxElementAbbreviator

public NameAbbreviator.MaxElementAbbreviator(int count)
Create new instance.

Parameters:
count - maximum number of path elements to output.
Method Detail

abbreviate

public void abbreviate(int nameStart,
                       java.lang.StringBuffer buf)
Abbreviate name.

Specified by:
abbreviate in class NameAbbreviator
Parameters:
buf - buffer to append abbreviation.
nameStart - start of name to abbreviate.


${license_html}