difflib
Class StringUtills
java.lang.Object
difflib.StringUtills
public class StringUtills
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtills
public StringUtills()
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 textcolumnWidth
- the given column
- Returns:
- the wrapped text
Copyright © 2009-2013. All Rights Reserved.