public class Address
extends java.lang.Object
[email protected]
or Personal Name
.Modifier and Type | Field and Description |
---|---|
java.lang.String |
address
The e-mail address in the form
[email protected] . |
java.lang.String |
personal
The personal name.
|
static java.lang.String |
RFC822
The e-mail address format used.
|
Constructor and Description |
---|
Address(java.lang.String address,
java.lang.String personal)
Creates a new
Address object, which represents an Internet email address. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of this address object.
|
public java.lang.String address
[email protected]
.public java.lang.String personal
public static final java.lang.String RFC822
public Address(java.lang.String address, java.lang.String personal) throws AddressException
Address
object, which represents an Internet email address.address
- The address in the RFC822 format.personal
- The personal name.AddressException
- If the given address is null
, or does not contain the character @
.