fr.inria.zvtm.text
Class PrefixTextShortener
java.lang.Object
fr.inria.zvtm.text.PrefixTextShortener
- All Implemented Interfaces:
- TextShortener
public class PrefixTextShortener
- extends Object
- implements TextShortener
|
Method Summary |
String |
shorten(String source,
int len)
Returns a string which is at most len characters
in length (but may be less). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final PrefixTextShortener INSTANCE
- Singleton PrefixTextShortener.
This class is thread-safe.
shorten
public String shorten(String source,
int len)
- Description copied from interface:
TextShortener
- Returns a string which is at most
len characters
in length (but may be less).
- Specified by:
shorten in interface TextShortener
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2011 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.