org.subethamail.smtp.util
Class TextUtils

java.lang.Object
  extended by org.subethamail.smtp.util.TextUtils

public class TextUtils
extends java.lang.Object

Author:
Jeff Schnitzer

Constructor Summary
TextUtils()
           
 
Method Summary
static byte[] getAsciiBytes(java.lang.String str)
           
static byte[] getBytes(java.lang.String str, java.lang.String charset)
           
static java.lang.String joinTogether(java.util.Collection<java.lang.String> items, java.lang.String delim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextUtils

public TextUtils()
Method Detail

joinTogether

public static java.lang.String joinTogether(java.util.Collection<java.lang.String> items,
                                            java.lang.String delim)
Returns:
a delimited string containing the specified items

getBytes

public static byte[] getBytes(java.lang.String str,
                              java.lang.String charset)
Returns:
the value of str.getBytes() without the idiotic checked exception

getAsciiBytes

public static byte[] getAsciiBytes(java.lang.String str)
Returns:
the string as US-ASCII bytes


Copyright © 2006-2011. All Rights Reserved.