Class InternetMailAddressParser


  • @Scriptable
    public final class InternetMailAddressParser
    extends 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.
                             "&" / "'" /
                             "*" / "+" /
                             "-" / "/" /
                             "=" / "?" /
                             "^" / "_" /
                             "`" / "{" /
                             "|" / "}" /
                             "~"
     

    • Constructor Detail

      • InternetMailAddressParser

        public InternetMailAddressParser()
      • InternetMailAddressParser

        public InternetMailAddressParser​(int p_iMaxAddressLength)
    • Method Detail

      • hasAddresses

        public boolean hasAddresses()
      • getAddresses

        public List<String> getAddresses()
      • reset

        public void reset()
      • update

        public void update​(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​(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)