de.uplanet.util
Class InternetMailAddressParser

java.lang.Object
  extended by de.uplanet.util.InternetMailAddressParser

@Scriptable
public final class InternetMailAddressParser
extends java.lang.Object

A parser that extracts internet mail addresses from arbitrary text.

The supported address syntax is a subset of the address syntax defined in RFC 5322.

  Restricted RFC 5322 address syntax recognized by this parser:

     addr-spec       =   local-part "@" domain

     local-part      =   dot-atom

     domain          =   dot-atom

     dot-atom-text   =   1*atext *("." 1*atext)

     dot-atom        =   [CFWS] dot-atom-text [CFWS]

     atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                         "!" / "#" /        ;  characters not including
                         "$" / "%" /        ;  specials.  Used for atoms.
                         "&" / "'" /
                         "*" / "+" /
                         "-" / "/" /
                         "=" / "?" /
                         "^" / "_" /
                         "`" / "{" /
                         "|" / "}" /
                         "~"
 

Version:
$Revision: 71457 $

Constructor Summary
InternetMailAddressParser()
           
InternetMailAddressParser(int p_iMaxAddressLength)
           
 
Method Summary
 void finish(char[] p_buf)
           
 void finish(char[] p_buf, int p_iStart, int p_iLen)
           
 void finish(java.lang.CharSequence p_chseq)
           
 void finish(java.lang.CharSequence p_chseq, int p_iStart, int p_iLen)
           
 java.util.List<java.lang.String> getAddresses()
           
 boolean hasAddresses()
           
 void reset()
           
 void update(char[] p_buf)
           
 void update(char[] p_buf, int p_iStart, int p_iLen)
           
 void update(java.lang.CharSequence p_chseq)
           
 void update(java.lang.CharSequence p_chseq, int p_iStart, int p_iLen)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternetMailAddressParser

public InternetMailAddressParser()

InternetMailAddressParser

public InternetMailAddressParser(int p_iMaxAddressLength)
Method Detail

hasAddresses

public boolean hasAddresses()

getAddresses

public java.util.List<java.lang.String> getAddresses()

reset

public void reset()

update

public void update(java.lang.CharSequence p_chseq)

update

public void update(java.lang.CharSequence p_chseq,
                   int p_iStart,
                   int p_iLen)

update

public void update(char[] p_buf)

update

public void update(char[] p_buf,
                   int p_iStart,
                   int p_iLen)

finish

public void finish(java.lang.CharSequence p_chseq)

finish

public void finish(java.lang.CharSequence p_chseq,
                   int p_iStart,
                   int p_iLen)

finish

public void finish(char[] p_buf)

finish

public void finish(char[] p_buf,
                   int p_iStart,
                   int p_iLen)


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.