javax.mail.search
Class BodyTerm
- Serializable
public final class BodyTerm
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
.
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.
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.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved