com.sas.mail
Interface AddressFactoryInterface

All Known Subinterfaces:
MessageFactoryInterface
All Known Implementing Classes:
InternetAddressFactory

public interface AddressFactoryInterface

AddressFactoryInterface is an interface for classes that create javax.mail.Address objects out of a String of addresses. It also describes a method for transforming an array of addresses to a String.


Method Summary
 Address[] newAddresses(String addressList)
          Create an array of Address objects using a String address list.
 String toString(Address[] addresses)
          Create a String from an array of Address objects.
 

Method Detail

newAddresses

public Address[] newAddresses(String addressList)
                       throws ParseException
Create an array of Address objects using a String address list.
Parameters:
addressList - the address list used to create an array of Address objects.
Returns:
an array of Address objects
Throws:
ParseException - if the String of addresses can't be parsed

toString

public String toString(Address[] addresses)
Create a String from an array of Address objects.
Parameters:
addresses - an array of Address objects to create a String from
Returns:
a String from the objects in the Address array




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:03:07