| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | NewsAddress(String
the newsgroup newsgroup, String the host host)Construct a NewsAddress with the given newsgroup and host. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public String | |
| public String | |
| public int | |
| public static NewsAddress[] | |
| public void | |
| public void | |
| public String | Returns: newsgroupImplements abstract javax. |
| public static String |
| host | back to summary |
|---|---|
| protected String host | |
| newsgroup | back to summary |
|---|---|
| protected String newsgroup | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NewsAddress | back to summary |
|---|---|
| public NewsAddress() Default constructor. | |
| NewsAddress | back to summary |
|---|---|
| public NewsAddress(String newsgroup) Construct a NewsAddress with the given newsgroup.
| |
| NewsAddress | back to summary |
|---|---|
| public NewsAddress(String newsgroup, String host) Construct a NewsAddress with the given newsgroup and host. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object a) Implements abstract javax. The equality operator.
| |
| getHost | back to summary |
|---|---|
| public String getHost() Get the host.
| |
| getNewsgroup | back to summary |
|---|---|
| public String getNewsgroup() Get the newsgroup.
| |
| getType | back to summary |
|---|---|
| public String getType() Implements abstract javax. Return the type of this address. The type of a NewsAddress is "news".
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Compute a hash code for the address.
| |
| parse | back to summary |
|---|---|
| public static NewsAddress[] parse(String newsgroups) throws AddressException Parse the given comma separated sequence of newsgroups into NewsAddress objects.
| |
| setHost | back to summary |
|---|---|
| public void setHost(String host) Set the host.
| |
| setNewsgroup | back to summary |
|---|---|
| public void setNewsgroup(String newsgroup) Set the newsgroup.
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract javax. Convert this address into a RFC 1036 address. | |
| toString | back to summary |
|---|---|
| public static String toString(Address[] addresses) Convert the given array of NewsAddress objects into a comma separated sequence of address strings. The resulting string contains only US-ASCII characters, and hence is mail-safe.
| |