javax.mail.search
public final class: BodyTerm [javadoc |
source]
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.BodyTerm
All Implemented Interfaces:
Serializable
This class implements searches on a Message Body.
All parts of the message that are of MIME type "text/*" are searched.
- author:
Bill
- Shannon
- author:
John
- Mani
Constructor: |
public BodyTerm(String pattern) {
// Note: comparison is case-insensitive
super(pattern);
}
Parameters:
pattern - The String to search for
|
Method from javax.mail.search.BodyTerm Summary: |
---|
equals, match |
Methods from javax.mail.search.SearchTerm: |
---|
match |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.mail.search.BodyTerm Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof BodyTerm))
return false;
return super.equals(obj);
}
|
public boolean match(Message msg) {
return matchPart(msg);
}
|