JavaScript is disabled on your browser.
javax.mail.search

Class BodyTerm

  • All Implemented Interfaces:
    java.io.Serializable


    public final class BodyTerm
    extends StringTerm 
    A textual search of the message content. Body searches are done only on:
    1. single-part messages whose primary-type is text OR
    2. multipart/mixed messages whose first body part's primary-type is text.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors
      Constructor and Description
      BodyTerm (java.lang.String pattern)
      Constructor.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      boolean equals (java.lang.Object other)
      boolean match (Message msg)
      Returns true only if the search text was found in the message body.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BodyTerm

        public BodyTerm(java.lang.String pattern)
        Constructor.
        Parameters:
        pattern - the text to search for
    • Method Detail

      • match

        public boolean match(Message msg)
        Returns true only if the search text was found in the message body.
        Specified by:
        match in class SearchTerm
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class StringTerm

AltStyle によって変換されたページ (->オリジナル) /