|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.Address
javax.mail.internet.NewsAddress
public class NewsAddress
This class models an RFC1036 newsgroup address.
| 字段摘要 | |
|---|---|
protected String |
host
|
protected String |
newsgroup
|
| 构造方法摘要 | |
|---|---|
NewsAddress()
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 |
getNewsgroup()
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 newsgroup 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 |
toString(Address[] addresses)
Convert the given array of NewsAddress objects into a comma separated sequence of address strings. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected String newsgroup
protected String host
| 构造方法详细信息 |
|---|
public NewsAddress()
public NewsAddress(String newsgroup)
newsgroup - the newsgroup
public NewsAddress(String newsgroup,
String host)
newsgroup - the newsgrouphost - the host| 方法详细信息 |
|---|
public String getType()
Address 中的 getTypeInternetAddresspublic void setNewsgroup(String newsgroup)
newsgroup - the newsgrouppublic String getNewsgroup()
public void setHost(String host)
host - the hostpublic String getHost()
public String toString()
Address 中的 toStringpublic boolean equals(Object a)
Address 中的 equalsa - Address objectpublic int hashCode()
Object 中的 hashCodepublic static String toString(Address[] addresses)
addresses - array of NewsAddress objects
ClassCastException, - if any address object in the
given array is not a NewsAddress objects. Note
that this is a RuntimeException.
public static NewsAddress[] parse(String newsgroups)
throws AddressException
newsgroups - comma separated newsgroup string
AddressException - if the parse failed
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||