difflib
Class StringUtills

java.lang.Object
  extended by difflib.StringUtills

public class StringUtills
extends Object


Constructor Summary
StringUtills()
           
 
Method Summary
static String expandTabs(String str)
          Replaces all tabs with 4 spaces.
static String htmlEntites(String str)
          Replaces all opening an closing tags with < or >.
static
<T> String
join(Iterable<T> objs, String delimiter)
           
static List<String> normalize(List<String> list)
           
static String normalize(String str)
           
static List<String> wrapText(List<String> list, int columnWidth)
           
static String wrapText(String line, int columnWidth)
          Wrap the text with the given column width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtills

public StringUtills()
Method Detail

join

public static <T> String join(Iterable<T> objs,
                              String delimiter)

expandTabs

public static String expandTabs(String str)
Replaces all tabs with 4 spaces.

Parameters:
str - The string.
Returns:

htmlEntites

public static String htmlEntites(String str)
Replaces all opening an closing tags with < or >.

Parameters:
str -
Returns:

normalize

public static String normalize(String str)

normalize

public static List<String> normalize(List<String> list)

wrapText

public static List<String> wrapText(List<String> list,
                                    int columnWidth)

wrapText

public static String wrapText(String line,
                              int columnWidth)
Wrap the text with the given column width

Parameters:
line - the text
columnWidth - the given column
Returns:
the wrapped text


Copyright © 2009-2013. All Rights Reserved.