public class StringAbbreviator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ELLIPSIS |
static String |
SPACE |
| Constructor and Description |
|---|
StringAbbreviator() |
| Modifier and Type | Method and Description |
|---|---|
String |
abbreviate(String str,
int maxLength)
Abbreviate str if needed, so that its number of characters
is <= maxChars
|
String |
getEllipsis() |
void |
setEllipsis(String s)
Set our ellipsis string, to the default if s is null
|
public static final String SPACE
public static final String DEFAULT_ELLIPSIS
Copyright © 2010 - 2020 Adobe. All Rights Reserved