Class EmailDoCoMoResultParser


public final class EmailDoCoMoResultParser extends AbstractDoCoMoResultParser
Implements the "MATMSG" email message entry format. Supported keys: TO, SUB, BODY
  • Field Details

    • ATEXT_ALPHANUMERIC

      private static final Pattern ATEXT_ALPHANUMERIC
  • Constructor Details

    • EmailDoCoMoResultParser

      public EmailDoCoMoResultParser()
  • Method Details

    • parse

      public EmailAddressParsedResult parse(Result result)
      Description copied from class: ResultParser
      Attempts to parse the raw Result's contents as a particular type of information (email, URL, etc.) and return a ParsedResult encapsulating the result of parsing.
      Specified by:
      parse in class ResultParser
      Parameters:
      result - the raw Result to parse
      Returns:
      ParsedResult encapsulating the parsing result
    • isBasicallyValidEmailAddress

      static boolean isBasicallyValidEmailAddress(String email)
      This implements only the most basic checking for an email address's validity -- that it contains an '@' and contains no characters disallowed by RFC 2822. This is an overly lenient definition of validity. We want to generally be lenient here since this class is only intended to encapsulate what's in a barcode, not "judge" it.