javax.mail.search
类 BodyTerm
java.lang.Object
javax.mail.search.SearchTerm
javax.mail.search.StringTerm
javax.mail.search.BodyTerm
- 所有已实现的接口:
- Serializable
public final class BodyTerm
- extends StringTerm
This class implements searches on a Message Body.
All parts of the message that are of MIME type "text/*" are searched.
- 作者:
- Bill Shannon, John Mani
- 另请参见:
- 序列化表格
BodyTerm
public BodyTerm(String pattern)
- Constructor
- 参数:
pattern - The String to search for
match
public boolean match(Message msg)
- The match method.
- 指定者:
- 类
SearchTerm 中的 match
- 参数:
msg - The pattern search is applied on this Message's body
- 返回:
- true if the pattern is found; otherwise false
equals
public boolean equals(Object obj)
- Equality comparison.
- 覆盖:
- 类
StringTerm 中的 equals
Copyright © 2013. All Rights Reserved.