com.ericdaugherty.mail.server.services.smtp.support
Class Utils

java.lang.Object
  extended by com.ericdaugherty.mail.server.services.smtp.support.Utils

public class Utils
extends java.lang.Object

SMTP Mail related common commands.

Author:
Andreas Kyrmegalos

Field Summary
static java.lang.String FILE_VERSION
           
 
Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String flattenAddresses(java.util.Collection addresses)
          Converts a List of EmailAddress instances into a comma delimited string.
static java.util.List inflateAddresses(java.lang.String addresses)
          Converts a comma delimited string of addresses into a List of EmailAddress instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_VERSION

public static final java.lang.String FILE_VERSION
See Also:
Constant Field Values
Constructor Detail

Utils

public Utils()
Method Detail

flattenAddresses

public static final java.lang.String flattenAddresses(java.util.Collection addresses)
Converts a List of EmailAddress instances into a comma delimited string.

Parameters:
addresses - Collection of Address instances.
Returns:
Comma delimited String of the addresses.

inflateAddresses

public static final java.util.List inflateAddresses(java.lang.String addresses)
Converts a comma delimited string of addresses into a List of EmailAddress instances.

Parameters:
addresses - Comma delimited String of addresses.
Returns:
List of Address instances.