public class

SearchSequence

extends Object
java.lang.Object
   ↳ com.google.code.com.sun.mail.imap.protocol.SearchSequence

Class Overview

This class traverses a search-tree and generates the corresponding IMAP search sequence.

Summary

Fields
private static Calendar cal
private static String[] monthTable Print an IMAP Date string, that is suitable for the Date SEARCH commands.
Public Constructors
SearchSequence()
Public Methods
static Argument generateSequence(SearchTerm term, String charset)
Generate the IMAP search sequence for the given search expression.
static boolean isAscii(SearchTerm term)
static boolean isAscii(String s)
Does this string contain only ASCII characters?
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static Calendar cal

private static String[] monthTable

Print an IMAP Date string, that is suitable for the Date SEARCH commands. The IMAP Date string is : date ::= date_day "-" date_month "-" date_year Note that this format does not contain the TimeZone

Public Constructors

public SearchSequence ()

Public Methods

public static Argument generateSequence (SearchTerm term, String charset)

Generate the IMAP search sequence for the given search expression.

Parameters
term
charset
Throws
IOException
SearchException

public static boolean isAscii (SearchTerm term)

Parameters
term

public static boolean isAscii (String s)

Does this string contain only ASCII characters?

Parameters
s