| java.lang.Object | ||
| ↳ | com.google.code.javax.mail.Address | |
| ↳ | com.google.code.javax.mail.internet.NewsAddress | |
This class models an RFC1036 newsgroup address.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long | serialVersionUID | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.Address
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| host | |||||||||||
| newsgroup | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
| |||||||||||
Construct a NewsAddress with the given newsgroup.
| |||||||||||
Construct a NewsAddress with the given newsgroup and host.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
The equality operator.
| |||||||||||
Get the host.
| |||||||||||
Get the newsgroup.
| |||||||||||
Return the type of this address.
| |||||||||||
Compute a hash code for the address.
| |||||||||||
Parse the given comma separated sequence of newsgroup into
NewsAddress objects.
| |||||||||||
Set the host.
| |||||||||||
Set the newsgroup.
| |||||||||||
Convert the given array of NewsAddress objects into
a comma separated sequence of address strings.
| |||||||||||
Convert this address into a RFC 1036 address.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.code.javax.mail.Address
| |||||||||||
From class
java.lang.Object
| |||||||||||
Default constructor.
Construct a NewsAddress with the given newsgroup.
| newsgroup | The newsgroup |
|---|
Construct a NewsAddress with the given newsgroup and host.
| newsgroup | The newsgroup |
|---|---|
| host | The host |
The equality operator.
| a | Address object |
|---|
Get the host.
Get the newsgroup.
Return the type of this address. The type of a NewsAddress is "news".
Compute a hash code for the address.
Parse the given comma separated sequence of newsgroup into NewsAddress objects.
| newsgroups | Comma separated newsgroup string |
|---|
| AddressException | if the parse failed |
|---|
Set the host.
| host | The host |
|---|
Set the newsgroup.
| newsgroup | The newsgroup |
|---|
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.
| addresses | Array of NewsAddress objects |
|---|
Convert this address into a RFC 1036 address.