javax.mail.search
Class BodyTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.BodyTerm
- All Implemented Interfaces:
- Serializable
public final class BodyTerm
- extends StringTerm
A textual search of the message content.
Body searches are done only on:
- single-part messages whose primary-type is
text
OR
- multipart/mixed messages whose first body part's primary-type is
text
.
- Version:
- 1.4
- Author:
- Chris Burdess
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object other)
|
boolean |
match(Message msg)
Returns true only if the search text was found in the message body. |
BodyTerm
public BodyTerm(String pattern)
- Constructor.
- Parameters:
pattern
- the text to search for
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(Object other)
- Overrides:
equals
in class StringTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved