public abstract class NameAbbreviator extends Object
Constructor and Description |
---|
NameAbbreviator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
abbreviate(int nameStart,
StringBuffer buf)
Abbreviates a name in a StringBuffer.
|
static NameAbbreviator |
getAbbreviator(String pattern)
Gets an abbreviator.
|
static NameAbbreviator |
getDefaultAbbreviator()
Gets default abbreviator.
|
public static NameAbbreviator getAbbreviator(String pattern)
pattern
- abbreviation pattern.public static NameAbbreviator getDefaultAbbreviator()
public abstract void abbreviate(int nameStart, StringBuffer buf)
nameStart
- starting position of name in buf.buf
- buffer, may not be null.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.