Class SearchSequence


  • public class SearchSequence
    extends Object
    This class traverses a search-tree and generates the corresponding IMAP search sequence. Each IMAPProtocol instance contains an instance of this class, which might be subclassed by subclasses of IMAPProtocol to add support for additional product-specific search terms.
    • Constructor Detail

      • SearchSequence

        public SearchSequence​(IMAPProtocol p)
        Create a SearchSequence for this IMAPProtocol.
        Parameters:
        p - the IMAPProtocol object for the server
        Since:
        JavaMail 1.6.0
      • SearchSequence

        @Deprecated
        public SearchSequence()
        Deprecated.
        Create a SearchSequence.
    • Method Detail

      • isAscii

        public static boolean isAscii​(SearchTerm term)
        Check if the "text" terms in the given SearchTerm contain non US-ASCII characters.
        Parameters:
        term - the search term
        Returns:
        true if only ASCII
      • isAscii

        public static boolean isAscii​(SearchTerm[] terms)
        Check if any of the "text" terms in the given SearchTerms contain non US-ASCII characters.
        Parameters:
        terms - the search terms
        Returns:
        true if only ASCII
      • isAscii

        public static boolean isAscii​(String s)
        Does this string contain only ASCII characters?
        Parameters:
        s - the string
        Returns:
        true if only ASCII