|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cryptix.util.EmailAddress
Represents an Internet e-mail address - username and host can be retrieved separately.
This may seem rather banal. It's useful for three reasons, however:
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
Constructor Summary | |
EmailAddress(java.lang.String friendlyAddress)
Constructs an EmailAddress from the given friendly address. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
java.lang.String |
host()
Gets the host name/domain for this address (i.e. the portion after the "@" symbol). |
java.util.Vector |
hostPath()
Gets a Vector containing each dot-separated component of the host name. |
static void |
main(java.lang.String[] args)
|
static void |
self_test(java.io.PrintWriter out)
|
java.lang.String |
toString()
|
java.lang.String |
user()
Gets the username for this address (i.e. the portion before the "@" symbol). |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public EmailAddress(java.lang.String friendlyAddress) throws java.io.IOException
java.io.IOException
- if the address is not valid.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String user()
public java.lang.String host()
public java.util.Vector hostPath()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args)
public static void self_test(java.io.PrintWriter out) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |