|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Address javax.mail.internet.NewsAddress
public class NewsAddress
A representation of an RFC1036 Internet newsgroup 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)
Subclasses must provide a suitable implementation of equals(). |
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()
Subclasses must provide a suitable representation of their address. |
static String |
toString(Address[] addresses)
Convert the supplied addresses to a comma-separated String. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String host
protected String newsgroup
Constructor Detail |
---|
public NewsAddress()
public NewsAddress(String newsgroup)
public NewsAddress(String newsgroup, String host)
Method Detail |
---|
public String getType()
getType
in class Address
public void setNewsgroup(String newsgroup)
public String getNewsgroup()
public void setHost(String host)
public String getHost()
public String toString()
Address
toString
in class Address
public boolean equals(Object o)
Address
equals
in class Address
o
- the object to compare t
public int hashCode()
hashCode
in class Object
public static NewsAddress[] parse(String addresses) throws AddressException
addresses
- the list to parse
AddressException
- if one of the addresses is invalidpublic static String toString(Address[] addresses)
addresses
- the addresses to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |