org.subethamail.smtp.util
Class TextUtils
java.lang.Object
org.subethamail.smtp.util.TextUtils
public class TextUtils
- extends Object
- Author:
- Jeff Schnitzer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextUtils
public TextUtils()
joinTogether
public static String joinTogether(Collection<String> items,
String delim)
- Returns:
- a delimited string containing the specified items
getBytes
public static byte[] getBytes(String str,
String charset)
- Returns:
- the value of str.getBytes() without the idiotic checked exception
getAsciiBytes
public static byte[] getAsciiBytes(String str)
- Returns:
- the string as US-ASCII bytes
Copyright © 2006-2011. All Rights Reserved.