public class PrefixTextShortener extends Object implements TextShortener
Modifier and Type | Field and Description |
---|---|
static PrefixTextShortener |
INSTANCE
Singleton PrefixTextShortener.
|
Modifier and Type | Method and Description |
---|---|
String |
shorten(String source,
int len)
Returns a string which is at most
len characters
in length (but may be less). |
public static final PrefixTextShortener INSTANCE
public String shorten(String source, int len)
len
characters
in length (but may be less).shorten
in interface TextShortener
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.