All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.util.EmailAddress

java.lang.Object
   |
   +----cryptix.util.EmailAddress

public final class EmailAddress
extends Object
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.3 $

Author:
Ian Brown

Constructor Index

 o EmailAddress(String)
Constructs an EmailAddress from the given friendly address.

Method Index

 o equals(Object)
 o hashCode()
 o host()
Gets the host name/domain for this address (i.e.
 o hostPath()
Gets a Vector containing each dot-separated component of the host name.
 o main(String[])
 o self_test(PrintWriter)
 o toString()
 o user()
Gets the username for this address (i.e.

Constructors

 o EmailAddress
 public EmailAddress(String friendlyAddress) throws IOException
Constructs an EmailAddress from the given friendly address.

Throws: IOException
if the address is not valid.

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o user
 public String user()
Gets the username for this address (i.e. the portion before the "@" symbol).

 o host
 public String host()
Gets the host name/domain for this address (i.e. the portion after the "@" symbol).

 o hostPath
 public Vector hostPath()
Gets a Vector containing each dot-separated component of the host name. This is useful for clients of distributed keyservers who need to query each possible keyserver in turn.

 o equals
 public boolean equals(Object obj)
Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
 o main
 public static void main(String args[])
 o self_test
 public static void self_test(PrintWriter out) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index