com.jidesoft.document
Class DefaultStringConverter
java.lang.Object
com.jidesoft.document.DefaultStringConverter
- All Implemented Interfaces:
- StringConverter
public class DefaultStringConverter
- extends Object
- implements StringConverter
Convert from one string to another string.
Method Summary |
String |
convert(String str)
Converts from one string to another string, for example, to make it shorter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStringConverter
public DefaultStringConverter(int maxLength,
int end)
- Construct a StringConverter.
- Parameters:
maxLength
- max length of the string after conversionend
- number of chars after "..."
convert
public String convert(String str)
- Converts from one string to another string, for example, to make it shorter.
- Specified by:
convert
in interface StringConverter
- Parameters:
str
- string to be converted
- Returns:
- string after conversion