javax.mail.search

Class FromStringTerm

public final class FromStringTerm extends AddressStringTerm

A string comparison of the From address header.

Version: 1.3

Author: Chris Burdess

Constructor Summary
FromStringTerm(String pattern)
Constructor.
Method Summary
booleanequals(Object other)
booleanmatch(Message msg)
Indicates whether the address pattern specified in the constructor is a substring of the string representation of the From address in the given message.

Constructor Detail

FromStringTerm

public FromStringTerm(String pattern)
Constructor.

Parameters: address the address pattern for comparison

Method Detail

equals

public boolean equals(Object other)

match

public boolean match(Message msg)
Indicates whether the address pattern specified in the constructor is a substring of the string representation of the From address in the given message.

Parameters: msg the message

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved