Class EmailDoCoMoResultParser


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

      • ATEXT_ALPHANUMERIC

        private static final java.util.regex.Pattern ATEXT_ALPHANUMERIC
    • Constructor Detail

      • EmailDoCoMoResultParser

        public EmailDoCoMoResultParser()
    • Method Detail

      • isBasicallyValidEmailAddress

        static boolean isBasicallyValidEmailAddress​(java.lang.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.