things.data.processing.rfc822
Interface AddressListener


public interface AddressListener

An address listener for what will come out of the AddressParser.

Version:
1.0

Version History

EPG - Initial - 12 FEB 05
 
Author:
Erich P. Gatejen

Method Summary
 boolean add(FullAddress item)
          Just add an add
 void push(java.lang.String address, java.lang.String friendly, java.lang.String group, java.lang.String busted)
          Push an address.
 

Method Detail

push

void push(java.lang.String address,
          java.lang.String friendly,
          java.lang.String group,
          java.lang.String busted)
          throws java.lang.Throwable
Push an address. Any element not present will be passed as null. The content is up to the implementation. There maybe be whitespace at either end of the strings--trim if you want.

Parameters:
address - an 822 complient address.
friendly - a friendly name or address. This is optional.
group - a group name. This is optional.
busted - a busted address component.
Throws:
java.lang.Throwable

add

boolean add(FullAddress item)
            throws java.lang.Throwable
Just add an add

Parameters:
item -
Returns:
return true if an original address. Return false if it is a duplicate address. it's up to the implementation to decide what is a duplicate.
Throws:
java.lang.Throwable


Things.