javax.mail.internet
public class NewsAddress extends Address
| Field Summary | |
|---|---|
| protected String | host
The host for this newsgroup |
| protected String | newsgroup
The name of this newsgroup |
| Constructor Summary | |
|---|---|
| NewsAddress() | |
| NewsAddress(String newsgroup) | |
| NewsAddress(String newsgroup, String host) | |
| Method Summary | |
|---|---|
| boolean | equals(Object o) |
| String | getHost() |
| String | getNewsgroup() |
| String | getType()
The type of this address; always "news". |
| int | hashCode() |
| static NewsAddress[] | parse(String addresses)
Parse a comma-spearated list of addresses.
|
| void | setHost(String host) |
| void | setNewsgroup(String newsgroup) |
| String | toString() |
| static String | toString(Address[] addresses)
Convert the supplied addresses to a comma-separated String.
|
Returns: "news"
Parameters: addresses the list to parse
Returns: the array of extracted addresses
Throws: AddressException if one of the addresses is invalid
Parameters: addresses the addresses to convert
Returns: a comma-separated list of addresses