Name

InternetAddress

Synopsis

This is a subclass of javax.mail.Address that handles an Internet-style (RFC-822) address. Examples of a valid Internet address are: postmaster@general.com and “L. Lincoln Penn” <postmaster@general.com>.

                  Returned By
public class InternetAddress extends Address implements Cloneable {
// Public Constructors
   public InternetAddress();  
   public InternetAddress(
        String address) throws AddressException;  
   public InternetAddress(String address, 
        String personal) throws UnsupportedEncodingException;  
   public InternetAddress(String address, String personal, 
        String charset) throws UnsupportedEncodingException;  
// Public Class Methods
   public static InternetAddress getLocalAddress(
        javax.mail.Session session);  
   public static InternetAddress[] parse(
        String addresslist) throws AddressException;  
   public static InternetAddress[] parse(String s, 
        boolean strict) throws AddressException;  
   public static String toString(
        Address[] addresses);  
   public static String toString(Address[] addresses, 
        int used);  
// Public Instance Methods
   public String getAddress();                                   // default:null
   public String getPersonal();                                  // default:null
   public void setAddress( String address);  
   public void setPersonal(
        String name) throws UnsupportedEncodingException;  
   public void setPersonal(String name, 
        String charset) throws UnsupportedEncodingException;  
   public String toUnicodeString();                              // 1.2
                  // Public Methods Overriding Address ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.