javax.mail.internet
Class NewsAddress

java.lang.Object
  extended byjavax.mail.Address
      extended byjavax.mail.internet.NewsAddress
All Implemented Interfaces:
Serializable

public class NewsAddress
extends Address

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:28 $
See Also:
Serialized Form

Field Summary
protected  String host
           
protected  String newsgroup
           
 
Constructor Summary
NewsAddress()
           
NewsAddress(String newsgroup)
           
NewsAddress(String newsgroup, String host)
           
 
Method Summary
 boolean equals(Object other)
           
 String getHost()
           
 String getNewsgroup()
           
 String getType()
           
 int hashCode()
           
static NewsAddress[] parse(String addresses)
           
 void setHost(String string)
           
 void setNewsgroup(String newsgroup)
           
 String toString()
           
static String toString(Address[] addresses)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

protected String host

newsgroup

protected String newsgroup
Constructor Detail

NewsAddress

public NewsAddress()

NewsAddress

public NewsAddress(String newsgroup)

NewsAddress

public NewsAddress(String newsgroup,
                   String host)
Method Detail

parse

public static NewsAddress[] parse(String addresses)
                           throws AddressException
Throws:
AddressException

toString

public static String toString(Address[] addresses)

equals

public boolean equals(Object other)
Overrides:
equals in class Address

getHost

public String getHost()

getNewsgroup

public String getNewsgroup()

getType

public String getType()
Specified by:
getType in class Address

hashCode

public int hashCode()

setHost

public void setHost(String string)

setNewsgroup

public void setNewsgroup(String newsgroup)

toString

public String toString()
Specified by:
toString in class Address


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.