org.jopendocument.util
Class StringUtils.Shortener

java.lang.Object
  extended by org.jopendocument.util.StringUtils.Shortener
Enclosing class:
StringUtils

public abstract static class StringUtils.Shortener
extends Object


Field Summary
static StringUtils.Shortener Ellipsis
           
static StringUtils.Shortener JavaHashCode
           
static StringUtils.Shortener MD5
           
 
Constructor Summary
protected StringUtils.Shortener(int hashSize, String prefix, String suffix, int minCharsBeforeAndAfter)
           
 
Method Summary
 String getBoundedLengthString(String s, int maxLength)
           
 int getMinStringLength()
           
protected abstract  String shorten(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Ellipsis

public static final StringUtils.Shortener Ellipsis

JavaHashCode

public static final StringUtils.Shortener JavaHashCode

MD5

public static final StringUtils.Shortener MD5
Constructor Detail

StringUtils.Shortener

protected StringUtils.Shortener(int hashSize,
                                String prefix,
                                String suffix,
                                int minCharsBeforeAndAfter)
Method Detail

getMinStringLength

public final int getMinStringLength()

getBoundedLengthString

public final String getBoundedLengthString(String s,
                                           int maxLength)

shorten

protected abstract String shorten(String s)


Copyright © 2010 jOpenDocument All Rights Reserved.