java.lang.Object | +--javax.mail.Address | +--javax.mail.internet.NewsAddress
String | The host name of the news server. |
String | The name of the newsgroup. |
Default constructor. |
NewsAddress(String newsgroup) Construct a NewsAddress with the given newsgroup. |
NewsAddress(String newsgroup, String host) Construct a NewsAddress with the given newsgroup and host. |
boolean | equals(Object a) The equality operator. |
String | getHost() Get the host. |
String | Get the newsgroup. |
String | getType() Return the type of this address. |
int | hashCode() Compute a hash code for the address. |
static NewsAddress[] | parse(String newsgroups) Parse the given comma separated sequence of newsgroups into NewsAddress objects. |
void | setHost(String host) Set the host. |
void | setNewsgroup(String newsgroup) Set the newsgroup. |
String | toString() Convert this address into a RFC 1036 address. |
static String | Convert the given array of NewsAddress objects into a comma separated sequence of address strings. |
protected String host
protected String newsgroup
public NewsAddress()
public NewsAddress(String newsgroup)
public NewsAddress(String newsgroup, String host)
public boolean equals(Object a)
public String getHost()
public String getNewsgroup()
public String getType()
public int hashCode()
public static NewsAddress[] parse(String newsgroups)
AddressException
- if the parse failedpublic void setHost(String host)
public void setNewsgroup(String newsgroup)
public String toString()
public static String toString(Address[] addresses)
- if any address object in the given array
is not a NewsAddress object.