Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.mail.search
Class BodyTerm  view BodyTerm download BodyTerm.java

java.lang.Object
  extended byjavax.mail.search.SearchTerm
      extended byjavax.mail.search.StringTerm
          extended byjavax.mail.search.BodyTerm
All Implemented Interfaces:
java.io.Serializable

public final class BodyTerm
extends StringTerm

Term that matches on a message body. All parts that have a MIME type of "text/*" are searched.

Version:
$Rev: 126550 $ $Date: 2005-01-26 14:27:45 -0800 (Wed, 26 Jan 2005) $

Field Summary
 
Fields inherited from class javax.mail.search.StringTerm
ignoreCase, pattern
 
Constructor Summary
BodyTerm(java.lang.String pattern)
           
 
Method Summary
 boolean match(javax.mail.Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
private  boolean matchPart(javax.mail.Part part)
           
 
Methods inherited from class javax.mail.search.StringTerm
equals, getIgnoreCase, getPattern, hashCode, match
 
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)
Method Detail

match

public boolean match(javax.mail.Message message)
Description copied from class: SearchTerm
Checks a matching criteria defined by the concrete subclass of this Term.

Specified by:
match in class SearchTerm

matchPart

private boolean matchPart(javax.mail.Part part)
                   throws javax.mail.MessagingException,
                          java.io.IOException