public class NewsAddress extends Address
Modifier and Type | Field and Description |
---|---|
protected String |
host
The host for this newsgroup
|
protected String |
newsgroup
The name of this newsgroup
|
Constructor and Description |
---|
NewsAddress() |
NewsAddress(String newsgroup) |
NewsAddress(String newsgroup,
String host) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String host
protected String newsgroup
public NewsAddress()
public NewsAddress(String newsgroup)
public String getType()
public void setNewsgroup(String newsgroup)
public String getNewsgroup()
public void setHost(String host)
public String getHost()
public String toString()
Address
public boolean equals(Object o)
Address
public static NewsAddress[] parse(String addresses) throws AddressException
addresses
- the list to parseAddressException
- if one of the addresses is invalidCopyright © 2013. All rights reserved.