Class AbstractField

    • Constructor Detail

    • Method Detail

      • getName

        public String getName()
        Gets the name of the field (Subject, From, etc).
        Specified by:
        getName in interface Field
        Returns:
        the field name.
      • getNameLowerCase

        public String getNameLowerCase()
        Gets the name of the field in lower case (subject, from, etc).
        Specified by:
        getNameLowerCase in interface Field
        Returns:
        the field name.
      • getBody

        public String getBody()
        Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field body string.
        Specified by:
        getBody in interface Field
        Returns:
        the unfolded unparsed field body string.
      • getRaw

        public ByteSequence getRaw()
        Gets original (raw) representation of the field, if available, null otherwise.
        Specified by:
        getRaw in interface Field
      • isValidField

        public boolean isValidField()
        Description copied from interface: ParsedField
        Returns true if this field is valid, i.e. no errors were encountered while parsing the field value.
        Specified by:
        isValidField in interface ParsedField
        Returns:
        true if this field is valid, false otherwise.
        See Also:
        ParsedField.isValidField()
      • getParseException

        public ParseException getParseException()
        Description copied from interface: ParsedField
        Returns the exception that was thrown by the field parser while parsing the field value. The result is null if the field is valid and no errors were encountered.
        Specified by:
        getParseException in interface ParsedField
        Returns:
        the exception that was thrown by the field parser or null if the field is valid.
        See Also:
        ParsedField.getParseException()
      • getRawField

        protected RawField getRawField()